[ https://issues.apache.org/jira/browse/LUCENE-9964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373042#comment-17373042 ]
Greg Miller commented on LUCENE-9964: ------------------------------------- Merged. Thanks [~gworah]! Please remember to backport to 8x :) > FacetResult.labelValues.value is not accurate for duplicate labels in a > document > -------------------------------------------------------------------------------- > > Key: LUCENE-9964 > URL: https://issues.apache.org/jira/browse/LUCENE-9964 > Project: Lucene - Core > Issue Type: Bug > Components: modules/facet > Affects Versions: 8.8.1 > Reporter: Gautam Worah > Priority: Minor > Time Spent: 5h > Remaining Estimate: 0h > > As part of a separate [bug|https://github.com/apache/lucene/pull/131] 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|https://github.com/gautamworah96/lucene/commit/042878117308f76629a27b0bcf83e25f074dc8b1#diff-6fda2d7520edb7e11d4af3f5b6e80c073a0e20790ec42692573137959837d742] -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org