We have a solr setup from a very old version (1.4) and we are upgrading it to 8.9. We are stuck at the point that I think the schema.xml is syntactically free of errors but now giving an error:
Caused by: org.apache.solr.common.SolrException: Could not load conf for core nwr_col: Can't load schema /var/solr/data/nwr_col/conf/schema.xml: _root_ field must be defined using the exact same fieldType as the uniqueKey field (id) uses: uuid We have a field “id” <field name="id" type="uuid" indexed="true" stored="true" default="NEW"/> <fieldType name="uuid" class="solr.UUIDField" indexed="true"/> So I added: <field name="_root_" type="uuid" indexed="false" stored="false" docValues="false" default="NEW" /> And now I got the following error: Caused by: org.apache.solr.common.SolrException: Could not load conf for core nwr_col: Can't load schema /var/solr/data/nwr_col/conf/schema.xml: [schema.xml] Duplicate field definition for '_root_' [[[_root_{type=string,properties=indexed,omitNorms,omitTermFreqAndPositions,sortMissingLast,docValues,useDocValuesAsStored,uninvertible}]]] and [[[_root_{type=uuid,default=NEW,properties=useDocValuesAsStored}]]] Sounds like redefining the _root_ field is not allowed. So I need to know: 1. How can we redefine _root_ to fix the above error? 2. Preferably, is there a way we can disable this parent child document feature to avoid the need of the _root_ field? Sorry for such a noob question. Regards, Ed. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows