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

FacetResult.labelValues.value is not accurate for duplicate labels in a document

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 8.8.1
    • 9.0, 8.10
    • modules/facet
    • None
    • New

    Description

      As part of a separate bug in FacetResult#value we discovered that FacetResult.labelValues.value is not accurate for duplicate labels in a document that uses SortedNumericDocValuesFields.

      In theory, each label should only be counted once from a document when returning the labelValues, but today, each duplicate label in a document is counted uniquely.

      A test case showing the current (inaccurate) output is here

      Attachments

        Activity

          People

            Unassigned Unassigned
            gworah Gautam Worah
            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 - 6h
                6h