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

FacetResult#value is inaccurate in LongValueFacetCounts for multi-value docs

Details

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

    Description

      As described in a dev@ list thread, the value of FacetResult#value should reflect the number of docs containing at least one value in a given facet path. LongValueFacetCounts counts the number of values contributed by all docs. In cases where all docs contain a single value, this is fine, but if a doc contains multiple values, FacetResult#value will be incorrect.

      This is a simple fix so I think we can include it in 8.9.

      Note: Spinning this off from LUCENE-9952 since fixing this for all cases (particularly SSDV) is trickier and may require non-backwards compatible changes.

      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 - 2h 10m
                2h 10m