[ 
https://issues.apache.org/jira/browse/LUCENE-10244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Greg Miller resolved LUCENE-10244.
----------------------------------
    Fix Version/s: 9.1
                   10.0 (main)
       Resolution: Fixed

Merged this onto 9x and main branches. Thanks [~reta] !

> Please consider opening MultiCollector::getCollectors for public use
> --------------------------------------------------------------------
>
>                 Key: LUCENE-10244
>                 URL: https://issues.apache.org/jira/browse/LUCENE-10244
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 8.10.1
>            Reporter: Andriy Redko
>            Priority: Minor
>             Fix For: 9.1, 10.0 (main)
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> The usage of *MultiCollector* sometimes is very convenient along with 
> {*}CollectorManager{*}s instances (as an alternative to 
> {*}MultiCollectorManager{*}), for example:
> {code:java}
> class SomeCollectorManager implements CollectorManager<Collector, ?> {
>     @Override
>     public Collector newCollector() throws IOException {
>       return MultiCollector.wrap(new Collector1(), new Collector2(), ...);
>     }
>     @Override
>     public List<Integer> reduce(Collection<Collector> collectors) throws 
> IOException {
>       return ...;
>     }
> }{code}
> Unfortunately, the *reduce()* phase is lacking the access to  
> *MultiCollector::getCollectors* method, since it is package protected at the 
> moment. Making *MultiCollector::getCollectors*  public would make it 
> convenient to use *MultiCollector +* *CollectorManager* and implement the 
> reduce phase by accessing individual collectors.



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