You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2022/07/01 13:01:34 UTC
[GitHub] [lucene] stefanvodita commented on a diff in pull request #1001: LUCENE-10629: Add fastMatchQuery to MatchingFacetSetCounts
stefanvodita commented on code in PR #1001:
URL: https://github.com/apache/lucene/pull/1001#discussion_r911942109
##########
lucene/facet/src/java/org/apache/lucene/facet/facetset/MatchingFacetSetsCounts.java:
##########
@@ -76,8 +92,12 @@ private int count(String field, List<FacetsCollector.MatchingDocs> matchingDocs)
BinaryDocValues binaryDocValues = DocValues.getBinary(hits.context.reader(), field);
- final DocIdSetIterator it =
- ConjunctionUtils.intersectIterators(Arrays.asList(hits.bits.iterator(), binaryDocValues));
+ DocIdSetIterator it = createIterator(hits);
Review Comment:
This is a bit of code that I’m not too happy about. In `createIterator()`, we are intersecting 2 iterators and then we intersect the resulting iterator again. Instead, we could intersect all 3 iterators at once, but that doesn’t work well with the `FacetCountsWithFilterQuery` abstraction.
--
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-unsubscribe@lucene.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org