Shai Erera created LUCENE-4709:
----------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]