Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lucene/CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ Bug Fixes
* GITHUB#14971: Fix CachedExecutor thread pool leak in ConcurrentMergeScheduler
when IndexWriter initialization fails. (Su Beom)

* GITHUB#15781: Fix incorrect parameter names in GradientFormatter error messages. (Vinay Krishna Pudyodu)

Changes in Runtime Behavior
---------------------
* GITHUB#14187: The query cache is now disabled by default. (Adrien Grand)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public GradientFormatter(
}
if (maxForegroundColor.length() != 7) {
throw new IllegalArgumentException(
"minForegroundColor is not 7 bytes long eg a hex " + "RGB value such as #FFFFFF");
"maxForegroundColor is not 7 bytes long eg a hex " + "RGB value such as #FFFFFF");
}
fgRMin = hexToInt(minForegroundColor.substring(1, 3));
fgGMin = hexToInt(minForegroundColor.substring(3, 5));
Expand All @@ -77,7 +77,7 @@ public GradientFormatter(
}
if (maxBackgroundColor.length() != 7) {
throw new IllegalArgumentException(
"minBackgroundColor is not 7 bytes long eg a hex " + "RGB value such as #FFFFFF");
"maxBackgroundColor is not 7 bytes long eg a hex " + "RGB value such as #FFFFFF");
}
bgRMin = hexToInt(minBackgroundColor.substring(1, 3));
bgGMin = hexToInt(minBackgroundColor.substring(3, 5));
Expand All @@ -87,14 +87,11 @@ public GradientFormatter(
bgGMax = hexToInt(maxBackgroundColor.substring(3, 5));
bgBMax = hexToInt(maxBackgroundColor.substring(5, 7));
}
// this.corpusReader = corpusReader;
this.maxScore = maxScore;
// totalNumDocs = corpusReader.numDocs();
}

@Override
public String highlightTerm(String originalText, TokenGroup tokenGroup) {
if (tokenGroup.getTotalScore() == 0) return originalText;
float score = tokenGroup.getTotalScore();
if (score == 0) {
return originalText;
Expand Down
Loading