You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Adrien Grand (JIRA)" <ji...@apache.org> on 2015/03/02 17:20:04 UTC
[jira] [Commented] (LUCENE-6326) MultiCollector does not handle
CollectionTerminatedException correctly
[ https://issues.apache.org/jira/browse/LUCENE-6326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14343327#comment-14343327 ]
Adrien Grand commented on LUCENE-6326:
--------------------------------------
+1 to make MultiCollector catch this exception. I think this is more intuitive as it would make the sub collectors collected as if they was no other collector.
> MultiCollector does not handle CollectionTerminatedException correctly
> ----------------------------------------------------------------------
>
> Key: LUCENE-6326
> URL: https://issues.apache.org/jira/browse/LUCENE-6326
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 5.0
> Reporter: Christoph Kaser
> Priority: Minor
>
> The javadoc of the *collect*-method of LeafCollector states:
> bq. Note: The collection of the current segment can be terminated by throwing a CollectionTerminatedException.
> However, the Multicollector does not catch this exception, so if one of the wrapped collectors terminates the current segment, it is terminated for every collector.
> The same is true for the *getLeafCollector*-method (even though this is not documented in the JavaDoc).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org