Author: ehatcher
Date: Thu Mar 17 19:29:16 2005
New Revision: 158016
URL: http://svn.apache.org/viewcvs?view=rev&rev=158016
Log:
Correct BooleanQuery.equals such that every clause is compared
Modified:
lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java
Modified: lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java
URL:
http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java?view=diff&r1=158015&r2=158016
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java
(original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/BooleanQuery.java Thu
Mar 17 19:29:16 2005
@@ -18,6 +18,8 @@
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 @@
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.*/