You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2013/01/23 12:22:13 UTC
[jira] [Resolved] (LUCENE-4709) Nuke FacetResultNode.residue
[ 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org