mirror of https://github.com/apache/lucene.git
add boost to hashCode: LUCENE-460
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@365976 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a4d2491fa
commit
2d85b34db8
|
@ -92,6 +92,6 @@ public abstract class MultiTermQuery extends Query {
|
|||
}
|
||||
|
||||
public int hashCode() {
|
||||
return term.hashCode();
|
||||
return term.hashCode() + Float.floatToRawIntBits(getBoost());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue