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

Greg Miller commented on LUCENE-10438:
--------------------------------------

Thanks [~jpountz]. Yep, that's exactly was I was thinking (but didn't describe 
as well). I like the idea of experimenting with this. I also think this idea 
could be applicable in some "non-browse" cases as well where the user knows the 
values they want counted. There could be some cases where it's more efficient 
to actually intersect those queries with the match set than to accumulate 
counts for all values. I think Solr might have a version of faceting that does 
this? Basically cases where the user knows the values they want counts for 
ahead of time (as opposed to a "top-n" type request), and the number of 
distinct values they want counted is much smaller than the overall cardinality 
of the faceting field.

> Leverage Weight#count in lucene/facets
> --------------------------------------
>
>                 Key: LUCENE-10438
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10438
>             Project: Lucene - Core
>          Issue Type: Task
>          Components: modules/facet
>            Reporter: Adrien Grand
>            Priority: Minor
>
> The facet module could leverage Weight#count in order to give fast counts for 
> the browsing use-case?



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to