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