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

Add getTopDims functionality to Facets

Details

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

    Description

      The current getAllDims functionality is really the only way for users to determine the "top" dimensions in a faceting field (i.e., get the top dims by count along with their top-n children), but it has the unfortunate side-effect of resolving all child paths for every dim, even if the user doesn't intend to use those dims. For example, if a match set contains docs relating to 100 different dims (and various values under each), but the user only wants the top 10 dims with their top 5 children, they can call getAllDims(5) then just grab the first 10 results, but a lot of wasted work has been done for the other 90 dims.

      It would be nice to implement something like getTopDims(int numDims, int numChildren) that would only do the work necessary to resolve numDims dims instead of all dims.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gsmiller Greg Miller
            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 - 9h
                9h