使用 curl 创建 sol 集合

Creating a solr collection with curl

我正在尝试在 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。

您可以使用下面的 url 创建 collection

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 管理页面中,您检查 collection 并验证哪个配置集用于 collection。