Unable to find schema.xml file in solr 6.0,so to configure it,am i supposed to add a new file,or it will happen automatically?

后端 未结 3 988
臣服心动
臣服心动 2021-02-07 19:45

I have created a new core named \"testcore\" in solR ,but in solR 6.0 I am not able to find Schema.xml file in conf folder,so am I supposed to manually create it or it will conf

3条回答
  •  醉话见心
    2021-02-07 20:44

    If you have started Solr with managed schema enabled and you would like to switch to manually editing a schema.xml file, you should take the following steps:

    1. Rename the managed-schema file to schema.xml

    2. Modify solrconfig.xml to replace the schemaFactory class.

      a. Remove any ManagedIndexSchemaFactory definition if it exists

    true managed-schema

    b. Add a ClassicIndexSchemaFactory definition as shown below

        
    
    1. Reload the core(s).

提交回复
热议问题