Re: _version_ field missing in schema?

2019-01-24 Thread Aleksandar Dimitrov
Finally, since you are trying to really tweak the schema and general configuration right from the start, you may find some of my presentations useful, as they show the minimal configuration. Not perfect for your needs, as I do skip _version, but as an additional data point. The recent one is:

Re: _version_ field missing in schema?

2019-01-24 Thread Aleksandar Dimitrov
Shawn Heisey writes: On 1/23/2019 3:49 AM, Aleksandar Dimitrov wrote: Hi Alex, thanks for you answer. I took the lines directly from the managed-schema, deleted the managed-schema, and pasted those lines into my schema.xml. Unless you have changed the solrconfig.xml to refer to the

Re: _version_ field missing in schema?

2019-01-23 Thread Shawn Heisey
On 1/23/2019 3:49 AM, Aleksandar Dimitrov wrote: Hi Alex, thanks for you answer. I took the lines directly from the managed-schema, deleted the managed-schema, and pasted those lines into my schema.xml. Unless you have changed the solrconfig.xml to refer to the classic schema, the file named

Re: _version_ field missing in schema?

2019-01-23 Thread Alexandre Rafalovitch
If you do not use API or Admin to change schema, it will not get automatically rewritten. So you can just stay with managed-shema file and version that. You can even disable write changes in solrconfig.xml:

Re: _version_ field missing in schema?

2019-01-23 Thread Aleksandar Dimitrov
Hi Alex, thanks for you answer. I took the lines directly from the managed-schema, deleted the managed-schema, and pasted those lines into my schema.xml. If I have other errors in the schema.xml (such as a missing field type), solr complains about those until I fix them. So I would guess

Re: _version_ field missing in schema?

2019-01-22 Thread Alexandre Rafalovitch
What do you mean schema.xml from managed-schema? schema.xml is old non-managed approach. If you have both, schema.xml will be ignored. I suspect you are not running with the schema you think you do. You can check that with API or in Admin UI if you get that far. Regards, Alex On Tue, Jan

_version_ field missing in schema?

2019-01-22 Thread Aleksandar Dimitrov
Hi, I'm using solr 7.5, in my schema.xml I have this, which I took from the managed-schema: stored="false" /> docValues="true" /> However, on startup, solr complains: Caused by: org.apache.solr.common.SolrException: _version_ field must exist in schema and be searchable (indexed