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

Shai Erera resolved LUCENE-4709.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0
                   4.2

Committed to trunk and 4x
                
> Nuke FacetResultNode.residue
> ----------------------------
>
>                 Key: LUCENE-4709
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4709
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>             Fix For: 4.2, 5.0
>
>         Attachments: LUCENE-4709.patch
>
>
> The residue is the count of all categories that did not make it to the top K. 
> But, this is a senseless statistic. Take for example the following case: two 
> documents with categories [A/1, A/2, A/3] and [A/1, A/4, A/5]. If you ask for 
> top-1 category of "A", you'll get A (count=2), A/1 (count=2), but A's residue 
> will be 4!
> As a user, that number doesn't tell you anything, except maybe when you index 
> only one category per document for a given dimension. But in that case, the 
> residue is {{root.value - sum(topK.value)}}, which the application can 
> compute if it needs to.
> In short, we're just wasting CPU cycles for that statistic, so I'm going to 
> remove it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to