在 solr 6.0 中找不到 schema.xml 文件,所以要配置它,我应该添加一个新文件,还是会自动发生? [英] 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?
问题描述
我在 solR 中创建了一个名为testcore"的新核心,但是在 solR 6.0 中我无法在 conf 文件夹中找到 Schema.xml 文件,所以我应该手动创建它还是它会自动配置自己?
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 configure itself automatically?
我想从示例文档中索引一个示例,所以要索引它我应该提到 Schema.xml 文档,否则它会自动发生,因为 solR 6 是无模式的.
I wanted to index a example from example docs,so to index it am I supposed to mention Schema.xml document or it will happen automatically as solR 6 is schemaless.
我正在努力学习本教程
https://examples.javacodegeeks.com/enterprise-java/apache-solr/apache-solr-tutorial-beginners/
请帮忙!!
推荐答案
如果您在启用托管模式的情况下启动了 Solr,并且希望切换到手动编辑 schema.xml
文件,你应该采取以下步骤:
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:
将
managed-schema
文件重命名为schema.xml
修改 solrconfig.xml
以替换 schemaFactory
类.
Modify solrconfig.xml
to replace the schemaFactory
class.
一个.删除任何 ManagedIndexSchemaFactory
定义(如果存在)
a. Remove any ManagedIndexSchemaFactory
definition if it exists