You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by er...@apache.org on 2013/10/06 16:22:34 UTC

svn commit: r1529621 - /lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml

Author: erick
Date: Sun Oct  6 14:22:33 2013
New Revision: 1529621

URL: http://svn.apache.org/r1529621
Log:
SOLR-5253, rearrange example schema to make it more difficult to remove _version_ and other reserved fields by mistake

Modified:
    lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml

Modified: lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml?rev=1529621&r1=1529620&r2=1529621&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml (original)
+++ lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml Sun Oct  6 14:22:33 2013
@@ -105,13 +105,19 @@
       and back compatibility is not guaranteed.  Names with both leading and
       trailing underscores (e.g. _version_) are reserved.
    -->
-        
-   <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 
 
-   <!-- points to the root document of a block of nested documents -->
+   <!-- _version_ is a required field, DO NOT REMOVE. --> 
+   <field name="_version_" type="long" indexed="true" stored="true"/>
+   
+   <!-- points to the root document of a block of nested documents. Required for nested
+      document support, may be removed otherwise -->
    <field name="_root_" type="string" indexed="true" stored="false"/>
 
-
+   <!-- While not required, a <uniqueKey> is present in almost all Solr installations,
+      only remove the "id" field if you have very good reason to. See the 
+      <uniqueKey> declaration below -->   
+   <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> 
+        
    <field name="sku" type="text_en_splitting_tight" indexed="true" stored="true" omitNorms="true"/>
    <field name="name" type="text_general" indexed="true" stored="true"/>
    <field name="manu" type="text_general" indexed="true" stored="true" omitNorms="true"/>
@@ -168,7 +174,6 @@
 
    <field name="payloads" type="payloads" indexed="true" stored="true"/>
 
-   <field name="_version_" type="long" indexed="true" stored="true"/>
 
    <!--
      Some fields such as popularity and manu_exact could be modified to