Hi,

Did you try with _version_ field stored (stored=true)?

Gaël


De : shacky <shack...@gmail.com>
Envoyé : vendredi 23 avril 2021 12:09
À : solr-user <solr-u...@lucene.apache.org>
Objet : Unable to create core: _version_ field must exist in schema and be 
searchable and retrievable and not multiValued 
 
Hi,
I'm creating a new core on a newly installed Solr 8.8.2 and I'm trying to
porting my very old schema which I was using on my previous Solr 1.4
installation.

On my old schema I removed some deprecated field types and the deprecated
parameter "enablePositionIncrements" plus the "defaultSearchField" and the
"solrQueryParser/@defaultOperator".

Now Solr is reporting that the _version_ field is missing:

=========================================================
Error CREATEing SolrCore 'newcore': Unable to create core [newcore] 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
=========================================================

This happens even if I've already added the _version_ field into the schema:

=========================================================
<field name="_version_" type="long" indexed="true" stored="false"/>
=========================================================

Could you help me please?

Thank you very much!
Bye

Reply via email to