Shawn Heisey <elyog...@elyograg.org> 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
classic schema, the
file named schema.xml is not used.
Yup, that was the mistake. I had to use
<schemaFactory class="ClassicIndexSchemaFactory" />
in my solrconfig, and then it worked. I think the classic schema
factory
should be enough for our use case.
Thanks!
Aleks
With the standard schema factory, on core startup, if schema.xml
is found, it is
copied to managed-schema and then renamed to a backup filename.
This would also
happen on reload, I believe.
Recommendation: unless you're using the classic schema, never
use the schema.xml
file. Only work with managed-schema.
Thanks,
Shawn