mirror of https://github.com/apache/lucene.git
Correct BooleanQuery.equals such that every clause is compared
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@158016 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
09b58de1db
commit
f14428eef4
|
@ -18,6 +18,8 @@ package org.apache.lucene.search;
|
|||
|
||||
import java.io.IOException;
|
||||
import java.util.Vector;
|
||||
import java.util.Arrays;
|
||||
|
||||
import org.apache.lucene.index.IndexReader;
|
||||
|
||||
/** A Query that matches documents matching boolean combinations of other
|
||||
|
@ -403,7 +405,7 @@ public class BooleanQuery extends Query {
|
|||
return false;
|
||||
BooleanQuery other = (BooleanQuery)o;
|
||||
return (this.getBoost() == other.getBoost())
|
||||
&& this.clauses.equals(other.clauses);
|
||||
&& Arrays.equals(this.getClauses(), other.getClauses());
|
||||
}
|
||||
|
||||
/** Returns a hash code value for this object.*/
|
||||
|
|
Loading…
Reference in New Issue