lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shikhar Bhushan (JIRA)" <>
Subject [jira] [Commented] (LUCENE-4370) Let Collector know when all docs have been collected
Date Wed, 14 May 2014 15:47:16 GMT


Shikhar Bhushan commented on LUCENE-4370:

> On one hand I think a Collector.finish() would be nice, but the argument could be made
you could handle this yourself (its done with returns).

Such a technique does not compose easily e.g. when you want to wrap collectors in other collectors,
unless you customize each and every one in the chain.

> Let Collector know when all docs have been collected
> ----------------------------------------------------
>                 Key: LUCENE-4370
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: core/search
>    Affects Versions: 4.0-BETA
>            Reporter: Tomás Fernández Löbbe
>            Priority: Minor
>         Attachments: LUCENE-4370.patch, LUCENE-4370.patch
> Collectors are a good point for extension/customization of Lucene/Solr, however sometimes
it's necessary to know when the last document has been collected (for example, for flushing
cached data).
> It would be nice to have a method that gets called after the last doc has been collected.

This message was sent by Atlassian JIRA

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

View raw message