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

Allow users to provide DocValues to (some) Facets Implementations

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 9.1, 10.0 (main)
    • modules/facet
    • None
    • New

    Description

      We have some Facets implementations that do aggregations over numeric values associated with each doc (e.g., DoubleRangeFacetCounts, LongValueFacetCounts, etc.). These implementations allow the user to either specify, 1) a field to source the doc values from, or 2) a custom source of values in the form of DoubleValueSource, LongValueSource, etc.

      Unfortunately, these xxValueSource implementations don't support multiple values per doc, while indexed doc values do. So if the user has indexed doc values they want to facet over, it works just fine if docs are multi-valued. But if they want to provide a custom source of data, they're restricted to single-value only.

      We should consider allowing users to provide their own doc values instances in favor of the xxValueSource instances. (I'd propose we deprecate the xxValueSource approach)

      Attachments

        Issue Links

          Activity

            People

              gsmiller Greg Miller
              gsmiller Greg Miller
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 2h 10m
                  2h 10m