lucene-dev mailing list archives

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


Michael McCandless commented on LUCENE-4885:

bq. In general, I feel that FacetResult and FRN are too verbose. I think that the root node's
statistics could be available from the FacetResult level, and that it could give you an iterator
directly, rather than giving you a node which you always must call root.subResults... but
it's for a separate issue.

I agree!

Also, sometimes you do need to pull a large number of facet results (the "See all..." case)
... and I wonder if we should just do parallel arrays, ie String[] labels and int[]/double[]
values, for flat results, or only expose an iterator.

bq. Regarding TopKInEachNode, I wonder if we should eliminate that completely from FacetRequest,
and create an appropriate FacetResultHander which you configure with the levels that you want,
including (potentially, in the future) different K values for different levels?

> 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, 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