From 1700df50100961ce5afe36136d0fb6a8430683fe Mon Sep 17 00:00:00 2001 From: Panagiotis Bailis Date: Mon, 29 Jul 2024 16:28:48 +0300 Subject: [PATCH] fixing log message --- .../org/elasticsearch/search/builder/SearchSourceBuilder.java | 2 +- .../org/elasticsearch/action/search/SearchRequestTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) ); }