apache / apache/lucene

Make CollectionTerminatedException handling in MultiCollector configurable [LUCENE-10001]

Open
#11,040 4 comments 0 reactions 1 assignee Claimed by @gsmiller View on GitHub
affects-version:9.0 legacy-jira-priority:Minor module:core/search type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 11h
Merged PRs (30d)
88

Description

In #7830, `MultiCollector` was modified to continue collecting against other leaf collectors that had not thrown a `CollectionTerminatedException` in cases where another one does. It would be nice if this behavior could be configurable. Some use-cases might actually want to early terminate all leaf collectors as soon as one signals early termination.

We could add a configurable option to the `MultiCollector#wrap` factory methods that allows users to specify the behavior they want.

---
Migrated from [LUCENE-10001](https://issues.apache.org/jira/browse/LUCENE-10001) by Greg Miller (@gsmiller), updated Jun 29 2021
Pull requests: https://github.com/apache/lucene/pull/181

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.