Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-10484

Add support for concurrent facets random sampling

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.2
    • modules/facet
    • None
    • New

    Description

      While FacetsCollectorManager exists to allows users to concurrently do facets collection through FacetsCollector, RandomSamplingFacetsCollector does not have a corresponding collector manager that easily allows users to concurrently do random sampling. The needed collector manager would be very similar to FacetsCollectorManager, yet it would need to expose a specialized reduced RandomSamplingFacetsCollector, and the reduction should call getOriginalMatchingDocs instead of getMatchingDocs, which modifies the internal totalHits when called.

      This relates to LUCENE-10002 and would allow to use a collector manager instead of a collector when doing random sampling, in the effort of reducing usages of IndexSearcher#search(Query, Collector).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lucacavanna Luca Cavanna
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m

                  Slack

                    Issue deployment