jainankitk commented on code in PR #14439: URL: https://github.com/apache/lucene/pull/14439#discussion_r2056834941
########## lucene/sandbox/src/java/org/apache/lucene/sandbox/facet/plain/histograms/HistogramCollector.java: ########## @@ -53,11 +63,31 @@ public LeafCollector getLeafCollector(LeafReaderContext context) throws IOExcept // The segment has no values, nothing to do. throw new CollectionTerminatedException(); } + + // We can use multi range traversal logic to collect the histogram on numeric + // field indexed as point for MATCH_ALL cases. In future, this can be extended + // for Point Range Query cases as well + if (context.reader().hasDeletions() == false + && weight.count(context) == context.reader().maxDoc()) { Review Comment: Added `null` check -- 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