Skip to content

Commit

Permalink
Update x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/…
Browse files Browse the repository at this point in the history
…inference/highlight/SemanticTextHighlighterTests.java
  • Loading branch information
jimczi authored Dec 6, 2024
1 parent 38310be commit 3e23304
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3e23304

Please sign in to comment.