[
https://issues.apache.org/jira/browse/SOLR-12189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Varun Thacker resolved SOLR-12189.
----------------------------------
Resolution: Not A Problem
My mistake. I was looking at an example where stored was true but actually it
wasn't. So it was a user error
> Cannot create a collection with _version_ as indexed=true and
> docValues="false"
> -------------------------------------------------------------------------------
>
> Key: SOLR-12189
> URL: https://issues.apache.org/jira/browse/SOLR-12189
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 7.0
> Reporter: Varun Thacker
> Priority: Major
>
> When I tried created a collection with the following definition for the
> version field , Solr refused to create the collection
> {code:java}
> <field name="_version_" type="long" indexed="true" stored="false"
> docValues="false"/>
> <fieldType name="long" class="solr.TrieLongField" docValues="true"
> precisionStep="0" positionIncrementGap="0"/>{code}
>
> {code:java}
> 2018-04-05 06:39:59.900 ERROR (qtp581374081-15) [c:test_version s:shard1
> r:core_node1 x:test_version_shard1_replica_n1] o.a.s.h.RequestHandlerBase
> org.apache.solr.common.SolrException: Error CREATEing SolrCore
> 'test_version_shard1_replica_n1': Unable to create core
> [test_version_shard1_replica_n1] Caused by: _version_ field must exist in
> schema and be searchable (indexed or docValues) and retrievable(stored or
> docValues) and not multiValued (_version_ not retrievable
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:949)
> at
> org.apache.solr.handler.admin.CoreAdminOperation.lambda$static$168(CoreAdminOperation.java:91)
> at
> org.apache.solr.handler.admin.CoreAdminOperation.execute(CoreAdminOperation.java:384)
> at
> org.apache.solr.handler.admin.CoreAdminHandler$CallInfo.call(CoreAdminHandler.java:389)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:174)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:177)
> ...
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.solr.common.SolrException: Unable to create core
> [test_version_shard1_replica_n1]
> at
> org.apache.solr.core.CoreContainer.createFromDescriptor(CoreContainer.java:996)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:916)
> ... 37 more
> Caused by: org.apache.solr.common.SolrException: Schema will not work with
> SolrCloud mode: _version_ field must exist in schema and be searchable
> (indexed or docValues) and retrievable(stored or docValues) and not
> multiValued (_version_ not retrievable
> {code}
> Based the the error message the create collection command should have
> succeeded
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]