【问题标题】:Creating a solr collection with curl使用 curl 创建 solr 集合
【发布时间】:2020-04-08 20:39:40
【问题描述】:

我正在尝试在 solr 云中创建集合,

https://abc.a/solr/admin/collections?action=CREATE&name=123&configSet=super&numShards=2&replicationFactor=2&maxShardsPerNode=2&wt=json

集合已创建,但 configSet 是使用 _default 创建的 除了指定的configSet "super"

super 配置已经上传到zookeeper。

【问题讨论】:

  • 您需要改用collection.configName=super 吗?你运行的是什么版本的 Solr?
  • 是的,完全是 .. 版本 8.4.1
  • 现在可以用了吗?
  • 使用默认的而不是指定的“超级”创建的集合
  • 根据to the documentation参数命名为collection.configName

标签: solr solrcloud


【解决方案1】:

您可以使用下面的网址来创建集合

http://localhost:8983/solr/admin/collections?action=CREATE&name=TestDemo4&numShards=1&replicationFactor=1&createNodeSet=localhost:8983_solr&collection.configName=pkiConfig

你得到的回应是:

{
  "responseHeader":
   {
    "status":0,
    "QTime":697 
   }
}

在 solr 管理页面中,您检查集合并验证集合使用了哪个配置集。

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-01-26
  • 1970-01-01
  • 1970-01-01
  • 2016-03-04
相关资源
最近更新 更多