[
https://issues.apache.org/jira/browse/SOLR-5253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787627#comment-13787627
]
Erick Erickson commented on SOLR-5253:
--------------------------------------
How about this?
<!-- 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
-->
<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 absoutely 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. It is _highly_ recommended that you leave
this field
in. -->
<field name="id" type="string" indexed="true" stored="true" required="true"
multiValued="false" />
> Move _version_ (and other _*_ fields) to right above the id field in the
> example schema.xml
> -------------------------------------------------------------------------------------------
>
> Key: SOLR-5253
> URL: https://issues.apache.org/jira/browse/SOLR-5253
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 4.5, 5.0
> Reporter: Erick Erickson
> Assignee: Erick Erickson
> Priority: Minor
> Attachments: SOLR-5253.patch, SOLR-5253.patch
>
>
> Minor, but it bugs me that it's so easy to try to remove all extraneous
> fields from schema.xml and shoot yourself in the foot. Now and forever more
> we should place all the "special" fields right at the top of the example
> schema. Trivial to do.
> True, we say a nice note "_*_ fields are internal and required", but still.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]