From 3e23304925b4eb1da724c490b3ebbabbbb8d6d2f Mon Sep 17 00:00:00 2001 From: Jim Ferenczi Date: Fri, 6 Dec 2024 19:13:07 +0000 Subject: [PATCH] Update x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighterTests.java --- .../xpack/inference/highlight/SemanticTextHighlighterTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighterTests.java b/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighterTests.java index 7dc4d99e06ac..af57c95c3561 100644 --- a/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighterTests.java +++ b/x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/highlight/SemanticTextHighlighterTests.java @@ -220,7 +220,7 @@ private void assertHighlightOneDoc( IndexSearcher searcher = newSearcher(reader); iw.close(); TopDocs topDocs = searcher.search(Queries.newNonNestedFilter(IndexVersion.current()), 1, Sort.INDEXORDER); - assertThat(topDocs.totalHits.value(), equalTo(1L)); + assertThat(topDocs.totalHits.value, equalTo(1L)); int docID = topDocs.scoreDocs[0].doc; SemanticTextHighlighter highlighter = new SemanticTextHighlighter(); var execContext = createSearchExecutionContext(mapperService);