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

   This attempts to generalize the `IndexSearcher#count` optimization from PR 
#12415 to histogram facets by introducing specialization for counting the 
number of matching docs in a range of doc IDs.
   
   Currently, disjunctions are dense conjunctions both internally collect 
`DocIdStream`s backed by a bitset. In the future, we could make more queries 
collect whole `DocIdStream`s at once to speed up collection, e.g. 
`MatchAllDocsQuery` or doc-value range queries that take advantage of a sparse 
index.
   
   This is a draft for now as the code doesn't compile. If the idea gets 
traction I'll look into implementing the new APIs and adding tests.


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