diff --git a/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java b/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java index de43d9fe05..0d35a11f7e 100644 --- a/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java +++ b/java-client/src/test/java11/org/opensearch/client/opensearch/integTest/AbstractMultiSearchRequestIT.java @@ -179,7 +179,7 @@ public void shouldReturnMultiSearchesSearchAfter() throws Exception { assertEquals(1, response.responses().size()); assertEquals(3, response.responses().get(0).result().hits().hits().size()); - List sorts = response.responses().get(0).result().hits().hits().get(1).sort(); + List sorts = response.responses().get(0).result().hits().hits().get(1).sort(); RequestItem sortedAfterItemsQuery = createMSearchSortedFuzzyRequest(b -> b.searchAfter(sorts)); MsearchResponse response2 = sendMSearchRequest(index, List.of(sortedAfterItemsQuery));