Skip to content

Apache Lucene open-source search software

LUCENE-4787: Fixed some highlighting javadocs.

Adrien Grand09fd65b01503
diff --git a/lucene/CHANGES.txt b/lucene/CHANGES.txt
index 7e29d1d5fe3..af74c26967b 100644
--- a/lucene/CHANGES.txt
+++ b/lucene/CHANGES.txt
@@ -10,7 +10,12 @@ http://s.apache.org/luceneversions
Bug Fixes
-LUCENE-6662: Fixed potential resource leaks. (Rishabh Patel via Adrien Grand)
+* LUCENE-6662: Fixed potential resource leaks. (Rishabh Patel via Adrien Grand)
+
+Other
+
+* LUCENE-4787: Fixed some highlighting javadocs. (Michael Dodsworth via Adrien
+ Grand)
======================= Lucene 6.1.0 =======================
diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java
index 7212f41ae66..8d4250a5b7c 100644
--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java
+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java
@@ -40,7 +40,7 @@ public class GradientFormatter implements Formatter
* Sets the color range for the IDF scores
*
* @param maxScore
- * The score (and above) displayed as maxColor (See QueryScorer.getMaxWeight
+ * The score (and above) displayed as maxColor (See {@link QueryScorer#getMaxTermWeight()}
* which can be used to calibrate scoring scale)
* @param minForegroundColor
* The hex color used for representing IDF scores of zero eg
diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java
index a435ff5111e..ba6e21a2187 100644
--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java
+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/package-info.java
@@ -86,10 +86,10 @@
* A subtle use of color can help emphasise the reasons for matching (useful when doing "MoreLikeThis" queries and
* you want to see what the basis of the similarities are).</p>
*
- * <p>The QueryScorer class has a new constructor which can use an IndexReader to derive the IDF (inverse document frequency)
+ * <p>The QueryScorer class has constructors that use an IndexReader to derive the IDF (inverse document frequency)
* for each term in order to influence the score. This is useful for helping to extracting the most significant sections
* of a document and in supplying scores used by the new GradientFormatter to color significant words more strongly.
- * The QueryScorer.getMaxWeight method is useful when passed to the GradientFormatter constructor to define the top score
+ * The QueryScorer.getMaxTermWeight method is useful when passed to the GradientFormatter constructor to define the top score
* which is associated with the top color.</p>
*/
package org.apache.lucene.search.highlight;