lucene-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/LUCENE-4885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13624737#comment-13624737
] 

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: https://issues.apache.org/jira/browse/LUCENE-4885
>             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: 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


Mime
View raw message