Lucene-10070
Description
Following Facets implementations are changed to ignore deleted documents for count all queries that don't use FacetsCollector instance.
- SortedSetDocValueFacetCounts
- ConcurrentSortedSetDocValueFacetCounts
- LongValueFacetCounts
- StringValueFacetCounts
Solution
Ignore deleted documents during docValues iteration to calculate facet label counts
Tests
Following test methods have been copied from pull request https://github.com/apache/lucene/pull/263/files (Thanks Greg Miller)
- TestLongValueFacetCounts.testCountAll()
- TestStringValueFacetCount.testCountAll()
- TestSortedSetDocValuesFacets.testCountAll()
Checklist
Please review the following and check all that apply:
- [X] I have reviewed the guidelines for How to Contribute and my code conforms to the standards described there to the best of my ability.
- [X] I have created a Jira issue and added the issue ID to my pull request title.
- [X] I have given Lucene maintainers access to contribute to my PR branch. (optional but recommended)
- [X] I have developed this patch against the
mainbranch. - [X] I have run
./gradlew check. - [X] I have added tests for my changes.
@goankur this can be closed out now right since you opened a separate PR for this change? There's nothing else remaining on this one is there? Thanks again!
@goankur this can be closed out now right since you opened a separate PR for this change?
Yep this is correct. I am closing this PR.