[ https://issues.apache.org/jira/browse/LUCENE-10511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17521028#comment-17521028 ]
Lu Xugang commented on LUCENE-10511: ------------------------------------ ConjunctionUtils is lack of the ability of prune DocIdSetIterators if all DocIdSetIterators are the "same". For example, if two elements in List<DocIdSetIterator> are DocIdSetIterator.all(int maxDoc), now we will iterate numbers of (2 * maxDoc) docs which could be reduce to numbers of (1 * maxDoc) docs. Could we add a new method in ConjunctionUtils to tell user whether all DocIdSetIterators are equal, then user himself choose a DocIdSetIterator from List<DocIdSetIterator> to do the iteration? > IntersectIterators is not necessary under matchAll case in Facet > ---------------------------------------------------------------- > > Key: LUCENE-10511 > URL: https://issues.apache.org/jira/browse/LUCENE-10511 > Project: Lucene - Core > Issue Type: Improvement > Reporter: Lu Xugang > Priority: Trivial > > If number of hits in FacetsCollector equals reader.maxDoc() and DocValues's > cost() which is precise, we may not do > ConjunctionUtils.intersectIterators(List<DocIdSetIterator>)? > -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org