如何在 Solr 5 中创建新核心? [英] How to create new core in Solr 5?

查看:33
本文介绍了如何在 Solr 5 中创建新核心?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我们正在使用 Apache Solr 4.10.3Heliosearch Distribution for Solr [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:

Error CREATEing SolrCore 'testcore1': Unable to create core [testcore1]

Error CREATEing SolrCore 'testcore1': Unable to create core [testcore1] Caused by: Could not find configName for collection testcore1 found:null

注意:我还看到了标签(即http://localhost:8983/solr/) Solr UI 的左侧,也不知道它是如何工作的?这意味着我不知道 schema.xmlsolrconfig.xml 文件的位置,因为缺少示例文件夹 (Collection1) 以及如何更新这些文件?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆