3

I am trying to create collection in solr cloud,

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

The collection is created, but the configSet is created using _default besides the specified configSet "super"

super configuration already uploaded to zookeeper.

5
  • Do you need to use collection.configName=super instead? What version of Solr are you running? Commented Apr 8, 2020 at 20:47
  • yes exactly .. version 8.4.1 Commented Apr 8, 2020 at 20:51
  • So does it work now? Commented Apr 8, 2020 at 20:58
  • collection created using the default one not the specified one "super" Commented Apr 8, 2020 at 21:01
  • According to the documentation the parameter is named collection.configName. Commented Apr 8, 2020 at 22:21

1 Answer 1

1

You can use below url to create the collection

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

The response you get is :

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

In the solr admin page you check the collection and verify which configset is been used for the collection.

Screenshot

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.