What is the difference between managed schema and schema.xml

I have questions in solr 6.

  • What is the main difference between managed schema and schema.xml
  • What are the advantages and disadvantages of using managed schemes and schema.xml (classic).

And could you help me understand what is recommended in solr6?

Hi,

Shaffic

+7
schema solr managed
source share
1 answer

I did some investigation after I wondered the same thing, and here is the best I can think of.

It seems that schema.xml and managed-schema are indentical, only their name has changed in Solr6.

Benefits of Managed Circuit

  • The benefits are that you can make changes to your schema more securely without the risk of typos or creating an invalid schema. The API will reject your changes if something is invalid.
  • The Schema API also handles all reboots of your kernels after changing the schema, so you don't need to.

Managed Circuit Disadvantages

  • You should not make manual changes to the managed scheme, and therefore you should go through the API, it makes it difficult to track the current state of your scheme (for example, through a version control system)

    Note. The Schema API schema has an endpoint for receiving a managed schema with the special curl http://localhost:8983/solr/<COLLECTION>/schema?wt=schema.xml parameter curl http://localhost:8983/solr/<COLLECTION>/schema?wt=schema.xml

Note. If you have a schema.xml file and I don’t have a managed schema during Solr startup and I don’t have a schemaFactory specified in solrconfig.xml, Solr will assume that it is managed and creates managed_schema from the schema.xml file, after which your the schema.xml file is no longer readable. The managed circuit will be read from now on. Further changes to schema.xml will be ignored.

+6
source share

All Articles