Github user romseygeek commented on the issue:

    https://github.com/apache/lucene-solr/pull/345
  
    > For instance I don't think it should try to report matches whenever there 
are no terms involved
    
    The reason I did this was to make Boolean matching accurate.  Say for 
example you have a query that looks like `field:term OR (field:term2 AND 
date:[2014-2018])`.  If a document contains both `term` and `term2`, but its 
date field falls outside that range, then we should only report a match on 
`term`, which means the BooleanQuery matches() method needs to know about 
matches from the date field.  I think it's also useful when reporting 'which 
fields did this query hit on'.  The MatchAllDocsQuery is a corner case, I 
admit, but it's the only one I think?


---

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

Reply via email to