msokolov commented on code in PR #13950: URL: https://github.com/apache/lucene/pull/13950#discussion_r1813555056
########## lucene/core/src/java/org/apache/lucene/search/BooleanQuery.java: ########## @@ -87,6 +87,28 @@ public Builder add(BooleanClause clause) { return this; } + /** + * Add a collection of BooleanClause's to this {@link Builder}. Note that the order in which + * clauses are added does not have any impact on matching documents or query performance. + * + * @throws IndexSearcher.TooManyClauses if the new number of clauses exceeds the maximum clause + * number + */ + public Builder add(Collection<BooleanClause> collection) { + // We do the final deep check for max clauses count limit during Review Comment: maybe just say "see addClause()" ? -- 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. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org