lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Naber <daniel.na...@t-online.de>
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).

Regards
 Daniel

-- 
http://www.danielnaber.de

---------------------------------------------------------------------
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