lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (Created) (JIRA)" <>
Subject [jira] [Created] (LUCENE-3542) StandardQueryParser ignores AND operator for tokenized query terms
Date Sat, 29 Oct 2011 20:37:32 GMT
StandardQueryParser ignores AND operator for tokenized query terms

                 Key: LUCENE-3542
             Project: Lucene - Java
          Issue Type: Bug
          Components: modules/queryparser
    Affects Versions: 3.4, 4.0
            Reporter: Simon Willnauer
            Priority: Minor
             Fix For: 3.5, 4.0

The standard query parser uses the default query operator for query clauses that are created
from tokenization in the query parser instead of the actual operator for the source term.

here is an example:
StandardQueryParser parser = new StandardQueryParser(new StandardAnalyzer(Version.LUCENE_34));
System.out.println(((BooleanQuery)parser.parse("_deleted:true AND title:東京", "f")));

this should yield:
+_deleted:true +(title:東 title:京)

as our former core query parser does but actually yields:
+_deleted:true title:東 title:京

seems like a bug to me, looking at the tests seems we don't test for this kind of queries
in the standard query parser tests too.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message