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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]