如何使用API​​在Solr中创建新核心并从configSet复制配置

时间:2017-05-18 16:43:37

标签: solr

我正在尝试使用configSet创建一个新的核心。

我正确使用命令行:

./solr create -c new_core -d my_configset

它从my_configset创建一个新核心复制配置。 那是日志:

Copying configuration to new core instance directory:
/Users/sergio/Desarrollo/tools/solr/solr-5.5.0/server/solr/test

Creating new core 'test' using command:
http://localhost:8983/solr/admin/cores?action=CREATE&name=test&instanceDir=test

{
"responseHeader":{
"status":0,
"QTime":178},
"core":"test"}

我正在尝试对API执行相同的操作,但它不起作用。

我使用以下网址:

http://localhost:8983/solr/admin/cores?action=CREATE&name=test&configSet=data_driven_schema_with_json_embedded_support_configs

但它不会从配置集中复制配置,而是将配置集与新核心链接起来,并且配置集在核心之间共享,而不是使用相同的配置集。模式中的任何更改都在核心之间共享。

是否有可能与命令行具有相同的行为?

0 个答案:

没有答案