diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java index 0b460b20ef1..3e872733ce2 100644 --- a/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java +++ b/lucene/highlighter/src/java/org/apache/lucene/search/uhighlight/UnifiedHighlighter.java @@ -585,17 +585,13 @@ public class UnifiedHighlighter { return breakIterator.get(); } - /** - * Returns the {@link PassageScorer} to use for ranking passages. This returns a new {@code - * PassageScorer} by default; subclasses can override to customize. - */ + /** Returns the {@link PassageScorer} to use for ranking passages. */ protected PassageScorer getScorer(String field) { return scorer; } /** * Returns the {@link PassageFormatter} to use for formatting passages into highlighted snippets. - * This returns a new {@code PassageFormatter} by default; subclasses can override to customize. */ protected PassageFormatter getFormatter(String field) { return formatter;