| Represents boosting factors per Field.
These are factors used by zilverline to boost a query. By default a given query such as 'java "method invocation" rmi' looks for
these terms in the contents of a document. By setting boost factors for other attributes of a document, such as title, name, and
summary you can tune the result of a query. Normally you start with contents (boostfactor 1.0), and then specify that you want a
occurence of the query terms within the name of a document to be twice as important as a hit within the contents, you specify a
boostfactor of 2.0. The example below rates an occurrence of query terms within summary to be three times as important as within
contents, and the title four times. These are typically read from Spring configuration:
<bean id="boostFactor" class="org.zilverline.lucene.BoostFactor">
<property name="factors">
<props>
<prop key="contents">1.0</prop>
<prop key="name">2</prop>
<prop key="summary">3</prop>
<prop key="title">4</prop>
</props>
</property>
</bean>
author: Michael Franken version: $Revision: 1.13 $ |