Apache Solr open-source search software
fix for LUCENE-572
Chris M. Hostetter0c9ec9edf74c
diff --git a/CHANGES.txt b/CHANGES.txtindex a1b609d8d0c..894bc902c85 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -56,7 +56,11 @@ Bug fixes11. LUCENE-352: Fixed bug in SpanNotQuery that manifested asNullPointerException when "exclude" query was not a SpanTermQuery.+ (Chris Hostetter)+12. LUCENE-572: Fixed bug in hashCode, was ignoring exclude clause+ (Chris Hostetter)+1.9.1Bug fixesdiff --git a/src/java/org/apache/lucene/search/spans/SpanNotQuery.java b/src/java/org/apache/lucene/search/spans/SpanNotQuery.javaindex e30250476e1..bfbc0a5925e 100644--- a/src/java/org/apache/lucene/search/spans/SpanNotQuery.java+++ b/src/java/org/apache/lucene/search/spans/SpanNotQuery.java@@ -172,7 +172,7 @@ public class SpanNotQuery extends SpanQuery {public int hashCode() {int h = include.hashCode();h = (h<<1) | (h >>> 31); // rotate left- h ^= include.hashCode();+ h ^= exclude.hashCode();h = (h<<1) | (h >>> 31); // rotate lefth ^= Float.floatToRawIntBits(getBoost());return h;