如何在Solr 5中创建新核心? [英] How to create new core in Solr 5?
问题描述
当前,我们使用 Apache Solr 4.10.3 或 H eliosearch D 分发 S olr [HDS] 作为搜索引擎来为我们的数据建立索引.
Currently we are using Apache Solr 4.10.3 OR Heliosearch Distribution for Solr [HDS] as a search engine to index our data.
此后,我得到了上个月有关 Apache Solr 5.0.0 发行版的消息.我已经成功安装了 Apache Solr 5.0.0 版本,现在它可以在8983
端口上正常运行(意味着仅运行solr但无法创建核心).在该UI中,我无法找到示例核心以及其下的架构或配置文件.因此,我开始按照旧版本创建新的内核,但是无法创建.以下是错误,我明白了:
Now after that, I got the news about Apache Solr 5.0.0 release in last month. I'd successfully installed Apache Solr 5.0.0 version and now its running properly on 8983
port (means only running solr but unable to create core). In that UI, I'm unable to find the example core as well as schema or config files under it. So, I started creating new core as we create in old versions but unable to create one. Following is the error, I'm getting it:
创建SolrCore'testcore1'时出错:无法创建核心[testcore1]原因:无法找到集合testcore1的configName:空
Error CREATEing SolrCore 'testcore1': Unable to create core [testcore1] Caused by: Could not find configName for collection testcore1 found:null
注意:我还看到了 Cloud 标签(即 http://localhost:8983/solr/)在Solr UI的左侧,也不知道它是如何工作的?意味着由于缺少示例文件夹( Collection1 ),我不知道schema.xml
,solrconfig.xml
文件的位置以及如何更新这些文件?
Note: I also seen Cloud tab on (ie. http://localhost:8983/solr/) left side of Solr UI and also don't know how it works? Meaning I don't know the location of the schema.xml
, solrconfig.xml
files due to lack of example folder (Collection1) and how to update those files?
是否有任何有用的文档或解决方案可用来解决此错误?
Is there any useful document or solution available to solve this error?
推荐答案
在Solr 5中,发行版中提供的bin/solr脚本支持内核的创建.试试
In Solr 5, creation of cores is supported by the bin/solr script provided in the distribution. Try
bin/solr create -help
快速介绍.
从上述帮助文档中,您可能会发现:
From the above help doc, you may find:
bin/solr create [-c name] [-d confdir] [-n configName] [-shards #] [-replicationFactor #] [-p port]
这篇关于如何在Solr 5中创建新核心?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!