You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Greg Miller (Jira)" <ji...@apache.org> on 2021/09/27 19:17:00 UTC

[jira] [Resolved] (LUCENE-10070) "count all" faceting functionality counts deleted docs for multiple implementations

     [ https://issues.apache.org/jira/browse/LUCENE-10070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Miller resolved LUCENE-10070.
----------------------------------
    Fix Version/s: 8.11
                   main (9.0)
       Resolution: Fixed

Backported to 8.11

> "count all" faceting functionality counts deleted docs for multiple implementations
> -----------------------------------------------------------------------------------
>
>                 Key: LUCENE-10070
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10070
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>            Reporter: Greg Miller
>            Priority: Minor
>             Fix For: main (9.0), 8.11
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> A few different {{Facets}} implementations supporting a "count all" style constructor that allows the user to not pass in a {{FacetsCollector}} instance. It advertises that it's equivalent to using a {{FacetsCollector}} populated with a {{MatchAllDocsQuery}}, but more efficient. It looks like, with the exception of {{FastTaxonomyFacetCounts}}, none of the implementations correctly account for deleted documents (have a look at {{FastTaxonomyFacetCounts}} for a correct example that consults "live docs."
> From what I can tell, the affected implementations are:
>  * SortedSetDocValueFacetCounts
>  * ConcurrentSortedSetDocValueFacetCounts
>  * LongValueFacetCounts
>  * StringValueFacetCounts
> I'll attach a PR shortly illustrating unit tests I wrote that confirm the bug.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org