lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maurice Coyle <maurice.co...@ucd.ie>
Subject field boosting best practise
Date Mon, 15 Dec 2003 19:05:02 GMT
hi,
i was wondering what's the best approach to take when boosting the value of
a particular field.

i'm searching over a document's title, url and contents fields and i want to
try giving certain fields a boost at times to see if it improves my results.
so for instance if i want to give the title field more weight i can use
Field.setBoost() to do this.

my question is, say for example i want to give the title field twice as much
weight as the url and contents fields.  do i set the boost value of title to
be 2.0 or should i set the boost value of the url and contents fields to be
0.25 and the boost value of the title field to be 0.5 (thereby having all
boost values adding up to 1 so all the socres are normalised with respect to
the title field's boost).

i just find the messages in the archives a little confusing regarding this,
i can't see which approach is best, or if either is best.

any help appreciated.
maurice


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message