SOLR-9449: Example schemas do not index _version_ field anymore because the field has DocValues enabled already

(cherry picked from commit 738d527)
This commit is contained in:
Shalin Shekhar Mangar 2016-08-29 09:32:31 +05:30
parent 5a16f15260
commit 213c184a58
4 changed files with 9 additions and 3 deletions

View File

@ -56,6 +56,9 @@ Optimizations
* SOLR-9374: Speed up Jmx MBean retrieval for FieldCache. (Tim Owen via shalin) * SOLR-9374: Speed up Jmx MBean retrieval for FieldCache. (Tim Owen via shalin)
* SOLR-9449: Example schemas do not index _version_ field anymore because the field
has DocValues enabled already. (shalin)
Other Changes Other Changes
---------------------- ----------------------

View File

@ -118,7 +118,8 @@
If you don't need it, consider removing it and the corresponding copyField directive. If you don't need it, consider removing it and the corresponding copyField directive.
--> -->
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="_version_" type="long" indexed="true" stored="false"/> <!-- doc values are enabled by default for primitive types such as long so we don't index the version field -->
<field name="_version_" type="long" indexed="false" stored="false"/>
<field name="_root_" type="string" indexed="true" stored="false" docValues="false" /> <field name="_root_" type="string" indexed="true" stored="false" docValues="false" />
<field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/> <field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/>

View File

@ -118,7 +118,8 @@
If you don't need it, consider removing it and the corresponding copyField directive. If you don't need it, consider removing it and the corresponding copyField directive.
--> -->
<field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" /> <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
<field name="_version_" type="long" indexed="true" stored="false"/> <!-- doc values are enabled by default for primitive types such as long so we don't index the version field -->
<field name="_version_" type="long" indexed="false" stored="false"/>
<field name="_root_" type="string" indexed="true" stored="false" docValues="false" /> <field name="_root_" type="string" indexed="true" stored="false" docValues="false" />
<field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/> <field name="_text_" type="text_general" indexed="true" stored="false" multiValued="true"/>

View File

@ -112,7 +112,8 @@
<!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml <!-- If you remove this field, you must _also_ disable the update log in solrconfig.xml
or Solr won't start. _version_ and update log are required for SolrCloud or Solr won't start. _version_ and update log are required for SolrCloud
--> -->
<field name="_version_" type="long" indexed="true" stored="false" /> <!-- doc values are enabled by default for primitive types such as long so we don't index the version field -->
<field name="_version_" type="long" indexed="false" stored="false"/>
<!-- points to the root document of a block of nested documents. Required for nested <!-- points to the root document of a block of nested documents. Required for nested
document support, may be removed otherwise document support, may be removed otherwise