Support Questions

Find answers, ask questions, and share your expertise

solr create_collection

avatar
Rising Star

Does anyone know if we have an option for solr create_collection command to specify the nodes for the index to be created on?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Arti Wadhwani

I believe this is what you are looking for

https://cwiki.apache.org/confluence/display/solr/Collections+API

createNodeSetstringNoAllows defining the nodes to spread the new collection across. If not provided, the CREATE operation will create shard-replica spread across all live Solr nodes. The format is a comma-separated list of node_names, such aslocalhost:8983_solr, localhost:8984_solr,localhost:8985_solr. Alternatively, use the special value of EMPTY to initially create no shard-replica within the new collection and then later use the ADDREPLICA operation to add shard-replica when and where required.

View solution in original post

11 REPLIES 11

avatar

You can use collection.configName, however make sure you have already uploaded the configuration to your Zookeeper znode. If you dont use collection.configName, Solr asumes the configuration is stored under the name of the collection.

avatar
Master Mentor

@Arti Wadhwani are you still having issues with this? Can you accept best answer or provide your own solution?