If you focus on this part of the exception message, you should find your
answer:
... and retrievable(stored or docValues)...
(_version_ not retrievable

You need the _version_ field to be stored or docValues.

Cheers
--------------------------
Alessandro Benedetti
Apache Lucene/Solr Committer
Director, R&D Software Engineer, Search Consultant

www.sease.io


On Fri, 23 Apr 2021 at 11:10, shacky <[email protected]> wrote:

> 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