MUST_NOT query always retunrs no documents
------------------------------------------

                 Key: LUCENE-2714
                 URL: https://issues.apache.org/jira/browse/LUCENE-2714
             Project: Lucene - Java
          Issue Type: Bug
          Components: Query/Scoring
    Affects Versions: 2.9.3
            Reporter: Christoph Schmidt


The following two queries are logically equal, but return different document 
results:

query1 = +body:term -id:17
query2 = +(+body:term) +(-id:17)

query1 returns all documents containing term in the field body not having id 17.
query2 returns no documents

Maybe is a kind of optimization that documents with score = 0.0 are ignored?

query3 = +(+body:term) +(+*:* -id:17)
has the same result as query1 again.

Thanks for help.
Best regards
Christoph Schmidt


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to