You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2021/06/15 22:39:44 UTC

[GitHub] [lucene] gsmiller commented on a change in pull request #181: LUCENE-10001: Make CollectionTerminatedException handling in MultiCollector configurable

gsmiller commented on a change in pull request #181:
URL: https://github.com/apache/lucene/pull/181#discussion_r652200243



##########
File path: lucene/core/src/java/org/apache/lucene/search/MultiCollector.java
##########
@@ -25,13 +25,39 @@
 /**
  * A {@link Collector} which allows running a search with several {@link Collector}s. It offers a
  * static {@link #wrap} method which accepts a list of collectors and wraps them with {@link
- * MultiCollector}, while filtering out the <code>null</code> null ones.
+ * MultiCollector}, while filtering out the <code>null</code> ones.
  */
 public class MultiCollector implements Collector {
 
+  /**
+   * Defines the behavior to take when a wrapped {@link Collector} signals early termination by
+   * throwing a {@link CollectionTerminatedException}.
+   */
+  public enum EarlyTerminationBehavior {

Review comment:
       Good suggestion, thanks!




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org