lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shai Erera (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4885) each FacetResult should return the facet equivalent of totalHits
Date Sun, 07 Apr 2013 06:01:18 GMT


Shai Erera commented on LUCENE-4885:

I think that this statistic needs to be on FacetResultNode, and not FacetResult, because if
someone asks for "topK in each node (depth > 1)", we should compute this statistic on each
node at each level. That today is supported only by StandardFA, but still. Initially, when
I thought about this issue, I thought that FacetResult.numValidDescendants is the data you
needed, but then realized it's not (it's the sum of topK at all levels).

On FRN, it should be like the other fields, public and not set in the ctor.
> each FacetResult should return the facet equivalent of totalHits
> ----------------------------------------------------------------
>                 Key: LUCENE-4885
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>              Labels: newdev
>             Fix For: 5.0, 4.3
>         Attachments: LUCENE-4885.patch
> This is cheap to compute, since the TopKFRH already must visit all non-zero-count ords
under the FacetRequest.categoryPath.
> This can be useful to a front end, eg to know whether to present a "More..." under that
dimension or not, whether to use a suggester like LinkedIn's facet UI, etc.

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:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message