Hi, what is your configuration for the “long” field type? Also error says “_version_ not retrievable” A field can be retrievable in 2 ways: 1) Marking it with stored=”true” (yours is not) 2) Marking it with docValues=”true” and having useDocValuesAsStored flag set to true in schema too
My configuration for reference is like: <!-- for schema versions >= 1.6, the default value for useDocValuesAsStored is "true", so Solr uses them where available --> <fieldType name="plong" class="solr.LongPointField" stored="false" docValues="true"/> <field name="_version_" type="plong" indexed="true"/> My schema version is 1.6 so as you can see I’m using the option 2. cheers Sent from Mail for Windows 10 From: shacky Sent: 23 April 2021 13:10 To: solr-user Subject: Unable to create core: _version_ field must exist in schema and besearchable 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