not true actually - we do have to run through this tokenstream again anyway, so this is necessary

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1144129 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-07-08 02:26:11 +00:00
parent 28dab8437f
commit 4163a4a955
1 changed files with 0 additions and 2 deletions

View File

@ -454,8 +454,6 @@ public class DefaultSolrHighlighter extends SolrHighlighter implements PluginInf
Highlighter highlighter;
if (Boolean.valueOf(req.getParams().get(HighlightParams.USE_PHRASE_HIGHLIGHTER, "true"))) {
// TODO: this is not always necessary - eventually we would like to avoid this wrap
// when it is not needed.
if (maxCharsToAnalyze < 0) {
tstream = new CachingTokenFilter(tstream);
} else {