Re: Throwing CollectionTerminatedException from Collector.getLeafCollector

2015-03-02 Thread Adrien Grand
Hi András, It feels useful to me too, I think we should document this behaviour. For the record, this other issue has just be open and mentions this problem https://issues.apache.org/jira/browse/LUCENE-6326. On Mon, Mar 2, 2015 at 1:17 PM, András Péteri wrote: > Hi, > > According to IndexSearche

Throwing CollectionTerminatedException from Collector.getLeafCollector

2015-03-02 Thread András Péteri
Hi, According to IndexSearcher's code [1], if a Collector implementation is not interested in collecting document hits from a particular leaf reader, it can also throw CollectionTerminatedException from Collector.getLeafCollector(LeafReaderContext). This option is however not described in Collecto