diff --git a/server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java b/server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java index 2cab29a7bc289..355267a43a8f4 100644 --- a/server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java +++ b/server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java @@ -2208,7 +2208,7 @@ public ActionRequestValidationException validate( if (retriever() != null) { if (allowPartialSearchResults && retriever().isCompound()) { validationException = addValidationError( - "cannot specify a compound retriever and [allow_search_partial_results]", + "cannot specify a compound retriever and [allow_partial_search_results]", validationException ); } diff --git a/server/src/test/java/org/elasticsearch/action/search/SearchRequestTests.java b/server/src/test/java/org/elasticsearch/action/search/SearchRequestTests.java index 84d5633e3d9a3..84a4eab897ba8 100644 --- a/server/src/test/java/org/elasticsearch/action/search/SearchRequestTests.java +++ b/server/src/test/java/org/elasticsearch/action/search/SearchRequestTests.java @@ -296,7 +296,7 @@ public boolean isCompound() { assertNotNull(validationErrors); assertEquals(1, validationErrors.validationErrors().size()); assertEquals( - "cannot specify a compound retriever and [allow_search_partial_results]", + "cannot specify a compound retriever and [allow_partial_search_results]", validationErrors.validationErrors().get(0) ); }