From a759207148ab5b827c89ff3de21ec3a811c2f75e Mon Sep 17 00:00:00 2001 From: Bo Zhang Date: Wed, 18 Dec 2024 10:05:55 -0800 Subject: [PATCH] Remove mistakenly added code from HybridSearchIT. (#1032) Signed-off-by: Bo Zhang --- .../java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java b/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java index 813c5841e..d4ae88a3f 100644 --- a/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java +++ b/qa/restart-upgrade/src/test/java/org/opensearch/neuralsearch/bwc/HybridSearchIT.java @@ -132,9 +132,6 @@ private HybridQueryBuilder getQueryBuilder( if (expandNestedDocs != null) { neuralQueryBuilder.expandNested(expandNestedDocs); } - if (isClusterOnOrAfterMinReqVersion(EXPAND_NESTED_FIELD.getPreferredName()) && expandNestedDocs != null) { - neuralQueryBuilder.expandNested(expandNestedDocs); - } if (methodParameters != null) { neuralQueryBuilder.methodParameters(methodParameters); }