mirror of https://github.com/apache/lucene.git
LUCENE-6570: Remove controversial defensive cloning of queries when adding them to a BooleanQuery.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1686408 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
954957c987
commit
2a1bab86b9
|
@ -122,7 +122,6 @@ public class BooleanQuery extends Query implements Iterable<BooleanClause> {
|
|||
if (clauses.size() >= maxClauseCount) {
|
||||
throw new TooManyClauses();
|
||||
}
|
||||
query = query.clone(); // be defensive
|
||||
clauses.add(new BooleanClause(query, occur));
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue