mirror of https://github.com/apache/lucene.git
SOLR-9676: DefaultSolrHighlighter: clarify warning when FVH can't be used
This commit is contained in:
parent
57ba96145c
commit
91f58ac72b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue