Skip to content

Commit 11b4dac

Browse files
committed
removed unused code
1 parent ef84b05 commit 11b4dac

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

server/src/internalClusterTest/java/org/elasticsearch/search/fetch/subphase/highlight/HighlighterSearchIT.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3623,19 +3623,6 @@ private void saveDocumentIntoIndex(String index, String id, XContentBuilder docu
36233623
refresh();
36243624
}
36253625

3626-
private String getHighlightedStringFromSearch(SearchResponse search, String fieldName){
3627-
SearchHits hits = search.getHits();
3628-
assertEquals("We expect this test search to find exactly one hit", 1, hits.getHits().length);
3629-
3630-
Map<String, HighlightField> highlightFields = hits.getAt(0).getHighlightFields();
3631-
assertTrue("We expect to find an highlighted field of name [ %s ]".formatted(fieldName), highlightFields.containsKey(fieldName));
3632-
3633-
Text[] fragments = highlightFields.get(fieldName).getFragments();
3634-
assertEquals("We expect to have exactly one fragment", 1, fragments.length);
3635-
3636-
return fragments[0].toString();
3637-
}
3638-
36393626
public static class MockAnalysisPlugin extends Plugin implements AnalysisPlugin {
36403627

36413628
public final class MockSnowBall extends TokenFilter {

0 commit comments

Comments
 (0)