ebradshaw opened a new pull request, #14609:
URL: https://github.com/apache/lucene/pull/14609

   Overrides rewrite in PointRangeQuery range to handle cases where the query 
either fully contains or fully excludes all documents within the shard.
   
   Often, particularly when using time based partitioning, range queries may 
overlap several indexes.  Many of these indexes have timestamp values that are 
fully contained by the query, in which case the query can be rewritten to a 
MatchAllDocsQuery or a FieldExistsQuery.  On the other hand, many indexes can 
be fully excluded if they're outside the requested time range, in which case 
the query can be rewritten to a MatchNoDocsQuery.
   
   While a similar optimization exists at the leaf level in the createWeight 
function, rewriting at the shard level enables other optimizations downstream.
   
   Please let me know if this has been ruled out in the past for other reasons 
or if the implementation misses anything.  Thanks.


-- 
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