You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Yonghui Zhao <zh...@gmail.com> on 2018/07/04 03:34:20 UTC

MultiCollector collect behavior is changed

In lucene 4.10,
If one collector throw CollectionTerminatedException,  all collectors are
terminated.

In lucene 7.2.1, CollectionTerminatedException will only terminate current
collector,  the others won't be terminated.


How to keep old behavior?

Re: MultiCollector collect behavior is changed

Posted by Yonghui Zhao <zh...@gmail.com>.
Thanks Adrien, got it.

2018-07-04 13:46 GMT+08:00 Adrien Grand <jp...@gmail.com>:

> This was considered a bug as the need to early-terminate is a per-collector
> decision. If you want to do something like that again, you could fork
> MultiCollector and propagate CollectionTerminatedExceptions.
>
> Le mer. 4 juil. 2018 à 05:34, Yonghui Zhao <zh...@gmail.com> a
> écrit :
>
> > In lucene 4.10,
> > If one collector throw CollectionTerminatedException,  all collectors are
> > terminated.
> >
> > In lucene 7.2.1, CollectionTerminatedException will only terminate
> current
> > collector,  the others won't be terminated.
> >
> >
> > How to keep old behavior?
> >
>

Re: MultiCollector collect behavior is changed

Posted by Adrien Grand <jp...@gmail.com>.
This was considered a bug as the need to early-terminate is a per-collector
decision. If you want to do something like that again, you could fork
MultiCollector and propagate CollectionTerminatedExceptions.

Le mer. 4 juil. 2018 à 05:34, Yonghui Zhao <zh...@gmail.com> a écrit :

> In lucene 4.10,
> If one collector throw CollectionTerminatedException,  all collectors are
> terminated.
>
> In lucene 7.2.1, CollectionTerminatedException will only terminate current
> collector,  the others won't be terminated.
>
>
> How to keep old behavior?
>