Created 12-02-2015 12:01 PM
Does anyone know if we have an option for solr create_collection command to specify the nodes for the index to be created on?
Created 12-02-2015 12:08 PM
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 ofEMPTY
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.
Created 12-03-2015 02:57 PM
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.
Created 02-03-2016 03:47 PM
@Arti Wadhwani are you still having issues with this? Can you accept best answer or provide your own solution?