Hi Nicola,

Yes, the residue was removed in LUCENE-4709 since it was a senseless
number. If you index your facets with OrdinalPolicy.ALL_PARENTS, then the
residue can be computed from root.value - sum(topK.value).

Also, FacetResult.numValidDescendants actually contains the right statistic
(total number of valid children), however it was set incorrectly by
FacetsAccumulator (see LUCENE--4885). If you use StandardFacetsAccumulator,
it is computed right.

Shai


On Tue, Apr 16, 2013 at 2:01 PM, Nicola Buso <nb...@ebi.ac.uk> wrote:

> Hi all,
>
> in lucene 4.1 there was this API
> FacetResultNode.getResidue()
>
> to understand if there are more values for a facet, than the topk
> returned.
> Is there a similar API in 4.2? I can't find it!
>
>
> Nicola.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>

Reply via email to