SOLR-9676: DefaultSolrHighlighter: clarify warning when FVH can't be used

This commit is contained in:
David Smiley 2016-10-21 13:51:45 -04:00
parent 57ba96145c
commit 91f58ac72b
1 changed files with 2 additions and 2 deletions

View File

@ -467,8 +467,8 @@ public class DefaultSolrHighlighter extends SolrHighlighter implements PluginInf
if (!useFvhParam) return false; if (!useFvhParam) return false;
boolean termPosOff = schemaField.storeTermPositions() && schemaField.storeTermOffsets(); boolean termPosOff = schemaField.storeTermPositions() && schemaField.storeTermOffsets();
if (!termPosOff) { if (!termPosOff) {
log.warn("Solr will not use FastVectorHighlighter because {} field does not store TermPositions and " log.warn("Solr will use the standard Highlighter instead of FastVectorHighlighter because the {} field " +
+ "TermOffsets.", schemaField.getName()); "does not store TermVectors with TermPositions and TermOffsets.", schemaField.getName());
} }
return termPosOff; return termPosOff;
} }