timgrein commented on issue #13375:
URL: https://github.com/apache/lucene/issues/13375#issuecomment-2119212286

   I took a first pass at this and also noticed that `MatchAllDocsQuery` is 
semantically wrong as some docs might not have the field (also caught by the 
existing test cases). What I think could work is to check, whether the 
`valueSource` is of type `FieldValuesSource` and rewrite the query to a 
`FieldExistsQuery` if we encounter the maximum possible range 
(`-Long.MAX_VALUE` and `Long.MAX_VALUE`) at the same time.
   
   WDYT @msokolov ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to