FAQ
Hello all,

For us "OR" defaul causes confusion among the users
because they expect narrower results as they add to
the query but the oppsite happens because the terms
are or-ed.

It it possble to request QueryParser to use "AND" as
a default instead of "OR"? What API call(s) is
responsible for this?


Thanks,

Slavikas

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Search Discussions

  • Richard Littin at May 5, 2005 at 10:41 pm

    ivj2324234-lucene@yahoo.com wrote:
    Hello all,

    For us "OR" defaul causes confusion among the users
    because they expect narrower results as they add to
    the query but the oppsite happens because the terms
    are or-ed.

    It it possble to request QueryParser to use "AND" as
    a default instead of "OR"? What API call(s) is
    responsible for this?
    QueryParser parser = new QueryParser(...);
    parser.setOperator(DEFAULT_OPERATOR_AND);

    Richard

    Thanks,

    Slavikas

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org


    .

    --
    Richard Littin, Reel Two NZ, PO Box 1538, Hamilton, New Zealand
    richard@reeltwo.com - ph: +64 7 857 0703 - fax: +64 7 857 0701
    void main(){float x=0;while(putchar((long)((x<4)?(((6.6667*x-34.5)
    *x+50.8333)*x+++82):(((-7.5*x+97)*x-398.5)*x+++619)))-10);}

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org
  • Bill Tschumy at May 6, 2005 at 2:00 am
    I have just released Parsnips 1.4, a commercial PIM for storage and
    retrieval of bookmarks, notes, file URLs and snippets of text.
    Parsnips is powered by Lucene.

    Please have a look at: <http://www.otherwise.com/Parsnips.html>
    --
    Bill Tschumy
    Otherwise -- Austin, TX
    http://www.otherwise.com



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
    For additional commands, e-mail: java-user-help@lucene.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMay 5, '05 at 10:08p
activeMay 6, '05 at 2:00a
posts3
users3
websitelucene.apache.org

People

Translate

site design / logo © 2022 Grokbase