lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r365976 - /lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java
Date Wed, 04 Jan 2006 20:22:52 GMT
Author: yonik
Date: Wed Jan  4 12:22:49 2006
New Revision: 365976

URL: http://svn.apache.org/viewcvs?rev=365976&view=rev
Log:
add boost to hashCode: LUCENE-460

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java?rev=365976&r1=365975&r2=365976&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/search/MultiTermQuery.java Wed Jan  4 12:22:49
2006
@@ -92,6 +92,6 @@
     }
 
     public int hashCode() {
-      return term.hashCode();
+      return term.hashCode() + Float.floatToRawIntBits(getBoost());
     }
 }



Mime
View raw message