Apache Lucene open-source search software
Add a comment to the schema.xml file(s) warning against applying analysis chains to the <uniqueKey> field.
Erick Erickson6c8dc4e115d5
diff --git a/solr/server/solr/configsets/basic_configs/conf/schema.xml b/solr/server/solr/configsets/basic_configs/conf/schema.xmlindex 2b6850f99b8..e10373e6ae6 100755--- a/solr/server/solr/configsets/basic_configs/conf/schema.xml+++ b/solr/server/solr/configsets/basic_configs/conf/schema.xml@@ -103,6 +103,11 @@<!-- Only remove the "id" field if you have a very good reason to. While not strictlyrequired, it is highly recommended. A <uniqueKey> is present in almost all Solrinstallations. See the <uniqueKey> declaration below where <uniqueKey> is set to "id".+ Do NOT change the type and apply index-time analysis to the <uniqueKey> as it will likely+ make routing in SolrCloud and document replacement in general fail. Limited _query_ time+ analysis is possible as long as the indexing process is guaranteed to index the term+ in a compatible way. Any analysis applied to the <uniqueKey> should _not_ produce multiple+ tokens--><field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />diff --git a/solr/server/solr/configsets/sample_techproducts_configs/conf/schema.xml b/solr/server/solr/configsets/sample_techproducts_configs/conf/schema.xmlindex fab57310af1..ff2cead55b9 100755--- a/solr/server/solr/configsets/sample_techproducts_configs/conf/schema.xml+++ b/solr/server/solr/configsets/sample_techproducts_configs/conf/schema.xml@@ -119,6 +119,11 @@<!-- Only remove the "id" field if you have a very good reason to. While not strictlyrequired, it is highly recommended. A <uniqueKey> is present in almost all Solrinstallations. See the <uniqueKey> declaration below where <uniqueKey> is set to "id".+ Do NOT change the type and apply index-time analysis to the <uniqueKey> as it will likely+ make routing in SolrCloud and document replacement in general fail. Limited _query_ time+ analysis is possible as long as the indexing process is guaranteed to index the term+ in a compatible way. Any analysis applied to the <uniqueKey> should _not_ produce multiple+ tokens--><field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />