xml - Solr 5.0 不创建 schema.xml

标签 xml solr

我正在学习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/

相关文章:

solr-jetty 4.0.0 错误 BoolField$1$1 覆盖 final方法 setReader

solr - 获取构面名称以及有关 Solr 中字段的额外/元信息

solr - 自定义 Solr 搜索特定字段的方式

java - solrj 子父关系查询失败

tomcat - solr tomcat utf-8

xml - 如何使用 XML 和 ReadHTMLTable 抓取多个页面?

xml - VB.NET XML 文字解析

java - 如何从java读取XML节点中的空白元素

xml - 如何使菜单项在odoo 10中不可见

javascript - 将 XML 加载到 DOM 中并替换 Microsoft.XMLDOM 的用法