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); }