You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2022/06/24 17:02:32 UTC

[lucene] branch branch_9x updated: Remove outdated comment in UnifiedHighlighter.get(Formatter|Scorer) javadoc. (#820)

This is an automated email from the ASF dual-hosted git repository.

cpoerschke pushed a commit to branch branch_9x
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/branch_9x by this push:
     new cb1cc34ab91 Remove outdated comment in UnifiedHighlighter.get(Formatter|Scorer) javadoc. (#820)
cb1cc34ab91 is described below

commit cb1cc34ab91143c5e3876d6dfde8d32e6e9da95e
Author: Christine Poerschke <cp...@apache.org>
AuthorDate: Fri Jun 24 18:00:28 2022 +0100

    Remove outdated comment in UnifiedHighlighter.get(Formatter|Scorer) javadoc. (#820)
    
    (cherry picked from commit 9199d48e7ee58791d480ff0174833c90c06acbc3)
---
 .../org/apache/lucene/search/uhighlight/UnifiedHighlighter.java     | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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;