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

ASF subversion and git services commented on LUCENE-10484:
----------------------------------------------------------

Commit 7ed0f3d7adb5654e5bc1be024b47f589bae1ed55 in lucene's branch 
refs/heads/main from Luca Cavanna
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=7ed0f3d7adb ]

LUCENE-10484: Add support for concurrent facets random sampling (#765)

This commit adds a new createManager static method to 
RandomSamplingFacetsCollector that allows users to perform random sampling 
concurrently. The returned collector manager is very similar to the existing 
FacetsCollectorManager but it exposes a specialized reduced 
RandomSamplingFacetsCollector.

This relates to 
[LUCENE-10002](https://issues.apache.org/jira/browse/LUCENE-10002). It allows 
users to use a collector manager instead of a collector when doing random 
sampling, in the effort of reducing usages of IndexSearcher#search(Query, 
Collector).

> Add support for concurrent facets random sampling
> -------------------------------------------------
>
>                 Key: LUCENE-10484
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10484
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/facet
>            Reporter: Luca Cavanna
>            Priority: Minor
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> While FacetsCollectorManager exists to allows users to concurrently do facets 
> collection through FacetsCollector, RandomSamplingFacetsCollector does not 
> have a corresponding collector manager that easily allows users to 
> concurrently do random sampling. The needed collector manager would be very 
> similar to FacetsCollectorManager, yet it would need to expose a specialized 
> reduced RandomSamplingFacetsCollector, and the reduction should call 
> getOriginalMatchingDocs instead of getMatchingDocs, which modifies the 
> internal totalHits when called.
> This relates to LUCENE-10002 and would allow to use a collector manager 
> instead of a collector when doing random sampling, in the effort of reducing 
> usages of IndexSearcher#search(Query, Collector).



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