You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by "Fiebig, Swen (init)" <sw...@init.de> on 2004/09/15 18:06:20 UTC
boosting fields in MultiFieldQueryParser with different factors
Hello group,
is there a way to boost the different fields of a MultiFieldQueryParser
with different factors? Or at least in the resulting Query?
Greetings,
Swen fiebig
Re: boosting fields in MultiFieldQueryParser with different factors
Posted by Daniel Naber <da...@t-online.de>.
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