You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Nicola Buso <nb...@ebi.ac.uk> on 2013/04/16 13:01:08 UTC
Lucene 4.2, where is facet residue
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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org
Re: Lucene 4.2, where is facet residue
Posted by Shai Erera <se...@gmail.com>.
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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>