SolrCloud: How to create a collection with a custom data directory

Question

I have a SolrCloud installation and want to create a new collection whose index data should be written to a custom directory specified while creating the collection

 

Answer

This is now possible with Solr version 4.7.

If you are using Solr 4.7 or a newer release the way to go about it is - 

Use the CREATE API call and adding the following query parameter to the call - &property.dataDir=/my/custom/dir/

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk