You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Shai Erera <se...@gmail.com> on 2010/09/08 14:17:48 UTC

ChainingCollector

Hi

We wrote a Collector which chains a bunch of other Collectors. Is there such
a utility in Lucene? I didn't find one ...

Collectors are one of the strong APIs, IMO, that Lucene offers and we take
advantage of them in many ways. ChainingCollector allows ... well, chaining
... a bunch of Collector, w/o them needing to know or care about each other,
and Lucene's API behaves well as well with it, since it is a Collector on
its own.

So if there isn't such a utility in Lucene, I thought it'd be a great
addition (as I'm sure we're not the only ones that do it). What do you
think? It's nothing too fancy or sophisticated, but more of a convenience
class.

Shai

Re: ChainingCollector

Posted by Grant Ingersoll <gs...@apache.org>.
Sounds useful to me.

On Sep 8, 2010, at 8:17 AM, Shai Erera wrote:

> Hi
> 
> We wrote a Collector which chains a bunch of other Collectors. Is there such a utility in Lucene? I didn't find one ...
> 
> Collectors are one of the strong APIs, IMO, that Lucene offers and we take advantage of them in many ways. ChainingCollector allows ... well, chaining ... a bunch of Collector, w/o them needing to know or care about each other, and Lucene's API behaves well as well with it, since it is a Collector on its own.
> 
> So if there isn't such a utility in Lucene, I thought it'd be a great addition (as I'm sure we're not the only ones that do it). What do you think? It's nothing too fancy or sophisticated, but more of a convenience class.
> 
> Shai

--------------------------
Grant Ingersoll
http://lucenerevolution.org Apache Lucene/Solr Conference, Boston Oct 7-8