Could not find the schema.xml file in solr 6.0, so I have to add a new file to configure it, or will it happen automatically?

I created a new kernel called testcore in solR, but in solR 6.0 I cannot find the Schema.xml file in the conf folder, so do I have to manually create it or will it automatically configure itself automatically?

I wanted to index the example from the docs example, so in order to index it, I have to mention the Schema.xml document, or this will happen automatically, since solR 6 is schematic.

I'm trying to use this tutorial

https://examples.javacodegeeks.com/enterprise-java/apache-solr/apache-solr-tutorial-beginners/

please, help!!

+8
search apache lucene solr solrj
source share
2 answers

Starting with Solr 6, all examples and typical configurations use a guided circuit approach. Thus, the schema.xml file is no longer there. Instead, there is a managed schema file, and it is managed by Solr itself. Therefore, editing the file is not recommended, although it is still possible.

Instead, you can edit the diagram through the admin interface, and now, in the diagram explorer .

+13
source share

If you enabled Solr with a managed schema enabled, and you would like to switch to manually editing the schema.xml file schema.xml you must follow these steps:

  • Rename the managed-schema file to schema.xml

  • Modify solrconfig.xml to replace the schemaFactory class.

    but. Remove any ManagedIndexSchemaFactory definition, if one exists

<!-- An example of Solr implicit default behavior if no schemaFactory is explicitly defined. --> <schemaFactory class="ManagedIndexSchemaFactory"> <bool name="mutable">true</bool> <str name="managedSchemaResourceName">managed-schema</str> </schemaFactory>

b. Add a ClassicIndexSchemaFactory definition as shown below

  <schemaFactory class="ClassicIndexSchemaFactory"/> 
  1. Reboot the kernel.
+8
source share

All Articles