我正在学习Solr,我已经下载了官方文档。
首先,我使用以下命令生成了一个新核心:
solr create -c mycore
这个命令在solr/server/solr下创建了mycore
虽然继续阅读我想试验字段配置 (schema.xml) 但是在 solr/server/solr/mycore/conf 下我没有那个文件。
我有很多文件比如:solrconfig.xml、stopwords.txt等等。
那么我必须做什么来生成 schema.xml 或(如果我必须手动创建它),我如何告诉“Solr,更新文档并使用新的 schema.xml”
谢谢
最佳答案
I have tried creating a core using "Solr Admin" on solr-5.0.0. It creates the core but does not add any other .xml files. It add everything in core.properties file which refers to default files.
And while creating solr core it does not create the schema.xml.
It refers to the default one.
If you want the new schema.xml to be refered you have to mention the path in core.properties
The core.properties file contains :
name=new_core
config=solrconfig.xml
schema=schema.xml
dataDir=data
coreNodeName=core_node1
For more info on core refer the below link
https://wiki.apache.org/solr/CoreAdmin
关于xml - Solr 5.0 不创建 schema.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28926542/