You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ds...@apache.org on 2016/10/21 17:52:40 UTC
lucene-solr:branch_6x: SOLR-9676: DefaultSolrHighlighter: clarify
warning when FVH can't be used
Repository: lucene-solr
Updated Branches:
refs/heads/branch_6x fd2dd537d -> e744feeeb
SOLR-9676: DefaultSolrHighlighter: clarify warning when FVH can't be used
(cherry picked from commit 91f58ac)
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e744feee
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e744feee
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e744feee
Branch: refs/heads/branch_6x
Commit: e744feeeb9796ace48adeb5cb63c8116317c07b0
Parents: fd2dd53
Author: David Smiley <ds...@apache.org>
Authored: Fri Oct 21 13:51:45 2016 -0400
Committer: David Smiley <ds...@apache.org>
Committed: Fri Oct 21 13:52:35 2016 -0400
----------------------------------------------------------------------
.../java/org/apache/solr/highlight/DefaultSolrHighlighter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/e744feee/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java b/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java
index 2e31d7d..f020eb7 100644
--- a/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java
+++ b/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java
@@ -467,8 +467,8 @@ public class DefaultSolrHighlighter extends SolrHighlighter implements PluginInf
if (!useFvhParam) return false;
boolean termPosOff = schemaField.storeTermPositions() && schemaField.storeTermOffsets();
if (!termPosOff) {
- log.warn("Solr will not use FastVectorHighlighter because {} field does not store TermPositions and "
- + "TermOffsets.", schemaField.getName());
+ log.warn("Solr will use the standard Highlighter instead of FastVectorHighlighter because the {} field " +
+ "does not store TermVectors with TermPositions and TermOffsets.", schemaField.getName());
}
return termPosOff;
}