From 418c6cd40d1454953af1e44f526dc6c42b51a64f Mon Sep 17 00:00:00 2001 From: Vacha Shah Date: Thu, 21 Sep 2023 23:54:37 +0000 Subject: [PATCH] Fixing build Signed-off-by: Vacha Shah --- CHANGELOG.md | 1 + .../opensearch/integTest/AbstractMultiSearchRequestIT.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f52cd35e9..83029e0ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added - Added support for "smartcn" analyzer ([#605](https://github.com/opensearch-project/opensearch-java/pull/605)) +- Added support for "script_fields" in multi search request ([#632](https://github.com/opensearch-project/opensearch-java/pull/632)) ### Dependencies diff --git a/java-client/src/test/java/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java b/java-client/src/test/java/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java index 1507ceaca7..4418e0f744 100644 --- a/java-client/src/test/java/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java +++ b/java-client/src/test/java/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java @@ -32,7 +32,6 @@ import org.opensearch.client.util.ObjectBuilder; import java.io.IOException; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -241,7 +240,8 @@ private RequestItem createMSearchQuery(String itemSize) { return createMSearchQuery(itemSize, null, List.of()); } - private RequestItem createMSearchQueryWithScriptFields(String itemSize, String fieldName, List sources, Map scriptFields) { + private RequestItem createMSearchQueryWithScriptFields(String itemSize, String fieldName, List sources, + Map scriptFields) { return RequestItem.of(item -> item.header(header -> header) .body(body -> body.query(createItemSizeSearchQuery(itemSize)) .highlight(createHighlight(fieldName))