lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r883533 - /lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/search/TestWildcard.java
Date Mon, 23 Nov 2009 23:06:50 GMT
Author: mikemccand
Date: Mon Nov 23 23:06:49 2009
New Revision: 883533

URL: http://svn.apache.org/viewvc?rev=883533&view=rev
Log:
LUCENE-2092 (on back compat branch): fix BQ's equal/hashCode to pay attention to disableCoord

Modified:
    lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/search/TestWildcard.java

Modified: lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/search/TestWildcard.java
URL: http://svn.apache.org/viewvc/lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/search/TestWildcard.java?rev=883533&r1=883532&r2=883533&view=diff
==============================================================================
--- lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/search/TestWildcard.java
(original)
+++ lucene/java/branches/lucene_3_0_back_compat_tests/src/test/org/apache/lucene/search/TestWildcard.java
Mon Nov 23 23:06:49 2009
@@ -104,7 +104,7 @@
     MultiTermQuery wq = new WildcardQuery(new Term("field", ""));
     wq.setRewriteMethod(MultiTermQuery.SCORING_BOOLEAN_QUERY_REWRITE);
     assertMatches(searcher, wq, 0);
-    BooleanQuery expected = new BooleanQuery();
+    BooleanQuery expected = new BooleanQuery(true);
     assertEquals(searcher.rewrite(expected), searcher.rewrite(wq));
   }
   



Mime
View raw message