Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-2986: Add MoreLikeThis to warning about features that require uniqueKey. Also, change the warning to warn log level.

Mark Robert Millerf4371dcedf26
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index c963ff7156a..1ac18d932b0 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -367,6 +367,9 @@ Other Changes
* SOLR-4155: Upgrade Jetty to 8.1.8. (Robert Muir)
+* SOLR-2986: Add MoreLikeThis to warning about features that require uniqueKey.
+ Also, change the warning to warn log level. (Shawn Heisey via Mark Miller)
+
================== 4.0.0 ==================
Versions of Major Components
diff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
index bf5e3361718..d21f216045e 100644
--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java
@@ -498,7 +498,7 @@ public final class IndexSchema {
}
if (!uniqueKeyField.stored()) {
- log.error("uniqueKey is not stored - distributed search will not work");
+ log.warn("uniqueKey is not stored - distributed search and MoreLikeThis will not work");
}
if (uniqueKeyField.multiValued()) {
String msg = "uniqueKey field ("+uniqueKeyFieldName+