mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
Misc cleanup in o.e.search.fetch (#101939)
Just some random findings from researching other things. Removing all kinds of dead code and fixing obvious duplication in 2 spots.
This commit is contained in:
parent
a32aae87d4
commit
433517ad01
24 changed files with 95 additions and 206 deletions
|
@ -56,7 +56,7 @@ public class AnnotatedTextHighlighter extends DefaultHighlighter {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected PassageFormatter getPassageFormatter(HitContext hitContext, SearchHighlightContext.Field field, Encoder encoder) {
|
||||
protected PassageFormatter getPassageFormatter(SearchHighlightContext.Field field, Encoder encoder) {
|
||||
return new AnnotatedPassageFormatter(encoder);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue