FAQ
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820

[PATCH] QueryParser not handling queries containing AND and OR correctly





------- Additional Comments From morus.walter@gmx.de 2004-01-22 08:18 -------
I extended the patch to avoid ArrayIndexOutOfBoundsExceptions
in case of stopwords.

Empty queries and queries containing only prohibited clauses return null
now.
Note that this also aplies to subqueries, e.g.
`a (-b -c)' gets `a' since -b -c only contains prohibited clauses.

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

Search Discussions

  • Bugzilla at Jan 22, 2004 at 8:19 am
    DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
    RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
    <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820>.
    ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
    INSERTED IN THE BUG DATABASE.

    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820

    [PATCH] QueryParser not handling queries containing AND and OR correctly





    ------- Additional Comments From morus.walter@gmx.de 2004-01-22 08:19 -------
    Created an attachment (id=10051)
    new version of patch taking care of stopwords

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
  • Bugzilla at Jan 22, 2004 at 5:39 pm
    DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
    RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
    <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820>.
    ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
    INSERTED IN THE BUG DATABASE.

    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820

    [PATCH] QueryParser not handling queries containing AND and OR correctly





    ------- Additional Comments From otis@apache.org 2004-01-22 17:39 -------
    Thanks for the patch!
    However, I applied your patch locally, but a number of QueryParser unit tests
    are now failing.
    Are they passing for you?

    Here are some failures I'm seeing:

    [junit] Testcase: testSimple(org.apache.lucene.queryParser.TestQueryParser):
    FAILED
    [junit] Query /a OR !b/ yielded /a/, expecting /a -b/
    [junit] junit.framework.AssertionFailedError: Query /a OR !b/ yielded /a/,
    expecting /a -b/
    [junit] at
    org.apache.lucene.queryParser.TestQueryParser.assertQueryEquals(TestQueryParser.java:162)

    [junit] Testcase: testNumber(org.apache.lucene.queryParser.TestQueryParser):
    Caused an ERROR
    [junit] null
    [junit] java.lang.NullPointerException
    [junit] at
    org.apache.lucene.queryParser.TestQueryParser.assertQueryEquals(TestQueryParser.java:160)


    etc.

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-dev-help@jakarta.apache.org
  • Bugzilla at Jan 22, 2004 at 6:19 pm
    DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
    RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
    <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820>.
    ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
    INSERTED IN THE BUG DATABASE.

    http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25820

    [PATCH] QueryParser not handling queries containing AND and OR correctly

    otis@apache.org changed:

    What |Removed |Added
    ----------------------------------------------------------------------------
    Status|NEW |ASSIGNED

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJan 22, '04 at 8:18a
activeJan 22, '04 at 6:19p
posts4
users1
websitelucene.apache.org

1 user in discussion

Bugzilla: 4 posts

People

Translate

site design / logo © 2022 Grokbase