QueryParser fails when parsing input "type:A"
---------------------------------------------

                 Key: LUCENE-3316
                 URL: https://issues.apache.org/jira/browse/LUCENE-3316
             Project: Lucene - Java
          Issue Type: Bug
          Components: core/queryparser
    Affects Versions: 3.1
            Reporter: Woelfle


When parsing the input string "type:A AND type:B" the QueryParser returns a 
Query only for "type:B"

This can be reproduced with following code:


StandardAnalyzer analyzer = new StandardAnalyzer(Version.LUCENE_31);
QueryParser parser = new QueryParser(LuceneHelper.LUCENE_VERSION, "title", 
analyzer);
Query query = parser.parse("type:A AND type:B");
System.out.println(query);


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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

Reply via email to