[
https://issues.apache.org/jira/browse/LUCENE-4370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13452006#comment-13452006
]
Robert Muir 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 IndexSearcher.search returns).
If we do this, we would have to be careful that collectors are currently going
thru the workflow properly (especially delegators):
I actually think there are bugs today.
I just looked at it out of curiousity and it doesnt look like CachingCollector
is always doing the right thing wrt setNextReader/setScorer
for example.
> Let Collector know when all docs have been collected
> ----------------------------------------------------
>
> Key: LUCENE-4370
> URL: https://issues.apache.org/jira/browse/LUCENE-4370
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/search
> Affects Versions: 4.0-BETA
> Reporter: Tomás Fernández Löbbe
> Priority: Minor
>
> 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]