use of org.graylog.shaded.elasticsearch7.org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder in project graylog2-server by Graylog2.
the class SearchRequestFactory method applyHighlighting.
private void applyHighlighting(SearchSourceBuilder searchSourceBuilder) {
if (allowHighlighting) {
final HighlightBuilder highlightBuilder = new HighlightBuilder().requireFieldMatch(false).field("*").fragmentSize(0).numOfFragments(0);
searchSourceBuilder.highlighter(highlightBuilder);
}
}
Aggregations