FAQ
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

Search Discussions

  • Daniel Naber at Sep 15, 2004 at 6:41 pm

    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedSep 15, '04 at 4:17p
activeSep 15, '04 at 6:41p
posts2
users2
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase