FAQ
Hi All,

If I am to completely avoid the query parser and use the BooleanQuery along
with TermQuery, RangeQuery, PrefixQuery, PhraseQuery, etc, does the search
words still get to the Analyzer, before actually doing the real search?

Many thanks,
Dino

Search Discussions

  • Mark Miller at Aug 28, 2008 at 2:37 pm

    Dino Korah wrote:
    Hi All,

    If I am to completely avoid the query parser and use the BooleanQuery along
    with TermQuery, RangeQuery, PrefixQuery, PhraseQuery, etc, does the search
    words still get to the Analyzer, before actually doing the real search?

    Many thanks,
    Dino

    Answer: no

    The QueryParser applies the analyzer and builds a Query object tree
    based on the results. You will have to apply the analyzer yourself if
    your going to forgo QueryParser.

    - Mark

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Yonik Seeley at Aug 28, 2008 at 2:37 pm

    On Thu, Aug 28, 2008 at 10:32 AM, Dino Korah wrote:
    If I am to completely avoid the query parser and use the BooleanQuery along
    with TermQuery, RangeQuery, PrefixQuery, PhraseQuery, etc, does the search
    words still get to the Analyzer, before actually doing the real search?
    Nope... the Analyzer is invoked by the QueryParser.

    -Yonik

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedAug 28, '08 at 2:33p
activeAug 28, '08 at 2:37p
posts3
users3
websitelucene.apache.org

People

Translate

site design / logo © 2023 Grokbase