Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Ref guide: nested docs: adding _root_ requires reindex (#185)

David Smiley19252f1c5b2b
diff --git a/solr/solr-ref-guide/src/indexing-nested-documents.adoc b/solr/solr-ref-guide/src/indexing-nested-documents.adoc
index c7fd8e94e35..75a9e39d604 100644
--- a/solr/solr-ref-guide/src/indexing-nested-documents.adoc
+++ b/solr/solr-ref-guide/src/indexing-nested-documents.adoc
@@ -232,6 +232,9 @@ Indexing nested documents _requires_ an indexed field named `\_root_`:
<field name="_root_" type="string" indexed="true" stored="false" docValues="false" />
----
+*Do not add this field to an index that already has data!
+<<reindexing.adoc#changes-that-require-reindex,You must reindex.>>*
+
* Solr automatically populates this field in _all_ documents with the `id` value of it's root document
-- it's highest ancestor, possibly itself.
* This field must be indexed (`indexed="true"`) but doesn't need to