You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ju...@apache.org on 2021/07/16 20:23:38 UTC

[lucene] branch main updated: Small fix to CombinedFieldQuery#hashCode

This is an automated email from the ASF dual-hosted git repository.

julietibs pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new 30beb70  Small fix to CombinedFieldQuery#hashCode
30beb70 is described below

commit 30beb70ffa210c7dd0b0d09b809088ccd9e80ff3
Author: Julie Tibshirani <ju...@gmail.com>
AuthorDate: Fri Jul 16 13:21:52 2021 -0700

    Small fix to CombinedFieldQuery#hashCode
---
 .../src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java
index 71a88df..8bafe11 100644
--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java
+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java
@@ -237,7 +237,7 @@ public final class CombinedFieldQuery extends Query implements Accountable {
   @Override
   public int hashCode() {
     int result = classHash();
-    result += Objects.hash(fieldAndWeights);
+    result = 31 * result + Objects.hash(fieldAndWeights);
     result = 31 * result + Arrays.hashCode(terms);
     return result;
   }