lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph Schmidt (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-2714) MUST_NOT query always retunrs no documents
Date Tue, 19 Oct 2010 12:06:27 GMT
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message