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:
Armin Braun 2023-11-09 13:46:00 +01:00 committed by GitHub
parent a32aae87d4
commit 433517ad01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 95 additions and 206 deletions

View file

@ -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);
}