mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
improve test
This commit is contained in:
parent
3a55998a3b
commit
a8be04b334
@ -57,6 +57,7 @@ public class VectorHighlighterTests {
|
||||
FastVectorHighlighter highlighter = new FastVectorHighlighter();
|
||||
String fragment = highlighter.getBestFragment(highlighter.getFieldQuery(new TermQuery(new Term("content", "bad"))),
|
||||
reader, topDocs.scoreDocs[0].doc, "content", 30);
|
||||
assertThat(fragment, notNullValue());
|
||||
System.out.println(fragment);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user