From dc2b125e1b888dda0674d71e2c8bfc3af770a2ac Mon Sep 17 00:00:00 2001 From: Harsha Vamsi Kalluri Date: Mon, 12 Aug 2024 17:31:31 -0700 Subject: [PATCH] Fix equals Signed-off-by: Harsha Vamsi Kalluri --- .../opensearch/search/approximate/ApproximateScoreQuery.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/search/approximate/ApproximateScoreQuery.java b/server/src/main/java/org/opensearch/search/approximate/ApproximateScoreQuery.java index f6a49a017f3e5..b102f7e727b4c 100644 --- a/server/src/main/java/org/opensearch/search/approximate/ApproximateScoreQuery.java +++ b/server/src/main/java/org/opensearch/search/approximate/ApproximateScoreQuery.java @@ -137,8 +137,7 @@ public boolean equals(Object o) { if (!sameClassAs(o)) { return false; } - ApproximateScoreQuery that = (ApproximateScoreQuery) o; - return originalQuery.equals(that.originalQuery) && approximationQuery.equals(that.approximationQuery); + return true; } @Override