Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

improve hashcodes: LUCENE-460

Yonik Seeley9b4b499548bc
diff --git a/src/java/org/apache/lucene/search/MatchAllDocsQuery.java b/src/java/org/apache/lucene/search/MatchAllDocsQuery.java
index 4c78125c9be..67405a92b96 100644
--- a/src/java/org/apache/lucene/search/MatchAllDocsQuery.java
+++ b/src/java/org/apache/lucene/search/MatchAllDocsQuery.java
@@ -147,6 +147,6 @@ public class MatchAllDocsQuery extends Query {
}
public int hashCode() {
- return Float.floatToIntBits(getBoost());
+ return Float.floatToIntBits(getBoost()) ^ 0x1AA71190;
}
}