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

FacetResult#value can be inaccurate in SortedSetDocValueFacetCounts

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.0
    • 9.1
    • modules/facet
    • None
    • New

    Description

      As described in a dev@ list thread, the value of FacetResult#value can be incorrect in SSDV faceting when docs are multi-valued (affects both SortedSetDocValueFacetCounts and ConcurrentSortedSetDocValueFacetCounts). If a doc has multiple values in the same dimension, it will be counted multiple times when populating the counts of FacetResult#value.

      We should either provide an accurate count, or provide -1 if we don't have an accurate count (like we do in taxonomy faceting). I think this change will be a bit involved though as SSDV facet counting likely needs to be made aware of FacetConfig.

      NOTE: I've updated this description to describe only the SSDV case after spinning off LUCENE-9953 to track the LongValueFacetCounts case.

      Attachments

        Activity

          People

            gsmiller Greg Miller
            gsmiller Greg Miller
            Votes:
            0 Vote for this issue
            Watchers:
            3 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 - 1h 40m
                1h 40m