lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <>
Subject Re: boosting fields in MultiFieldQueryParser with different factors
Date Wed, 15 Sep 2004 18:44:02 GMT
On Wednesday 15 September 2004 18:06, Fiebig, Swen (init) wrote:

> is there a way to boost the different fields of a MultiFieldQueryParser
> with different factors? Or at least in the resulting Query?

The easiest way is probably to subclass MultiFieldQueryParser and implement 
a method that modifies the boosts (you can copy most of it from 
MultiFieldQueryParser.parse() and then call setBoost() on the queries).



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message