lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Commented: (LUCENE-2636) Create ChainingCollector
Date Fri, 10 Sep 2010 12:09:32 GMT


Yonik Seeley commented on LUCENE-2636:

Heh - Solr added a MultiCollector a few weeks ago (and it does exactly the same thing).
As far as naming, I agree this isn't a chaining collector, but a branching collector (and
MultiCollector is a better name).

Solr's version also has this, which simplifies building a list of collectors and then creating
a single collector:
  public static Collector wrap(List<? extends Collector> collectors) {
    return collectors.size() == 1 ? collectors.get(0) : new MultiCollector(collectors);  

We should consolidate these two versions of course.

> Create ChainingCollector
> ------------------------
>                 Key: LUCENE-2636
>                 URL:
>             Project: Lucene - Java
>          Issue Type: New Feature
>          Components: Search
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>            Priority: Minor
>             Fix For: 3.1, 4.0
>         Attachments: LUCENE-2636.patch
> ChainingCollector allows chaining a bunch of Collectors, w/o them needing to know or
care about each other, and be passed into Lucene's search API, since it is a Collector on
its own. It is a convenient, yet useful, class. Will post a patch w/ it shortly.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message