From aa09fb2bbf4b6bb87363cfb11dbae2e01d20db2b Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Thu, 4 Jul 2024 15:24:02 +0100 Subject: [PATCH] fix typo --- .../org/elasticsearch/search/builder/SearchSourceBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 27f9147de9b36..4186468b69651 100644 --- a/server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java +++ b/server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java @@ -2327,7 +2327,7 @@ public ActionRequestValidationException validate(ActionRequestValidationExceptio if (suggest() != null && suggest().getSuggestions().isEmpty() == false) { validationException = addValidationError("[rank] cannot be used with [suggest]", validationException); } - if (highlight() != null) { + if (highlighter() != null) { validationException = addValidationError("[rank] cannot be used with [highlighter]", validationException); } if (pointInTimeBuilder() != null) {