Apache Lucene open-source search software
Make highlightForeground and highlightBackground so that this can be extended in another package, esp in the case where only highlightTerm() is changed.
David Spencerd5fe240da1e6
diff --git a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.javaindex cbea86c3e15..81f6a047596 100644--- a/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java+++ b/sandbox/contributions/highlighter/src/java/org/apache/lucene/search/highlight/GradientFormatter.java@@ -29,13 +29,13 @@ public class GradientFormatter implements Formatterint fgRMax, fgGMax, fgBMax;- boolean highlightForeground;+ protected boolean highlightForeground;int bgRMin, bgGMin, bgBMin;int bgRMax, bgGMax, bgBMax;- boolean highlightBackground;+ protected boolean highlightBackground;/*** Sets the color range for the IDF scores