Creating a new collection in Solr using command line

Viewed 16075

I know that are a few ways to create Solr collections. One using Solr Admin UI webpage. Another using Collections API

But How do I create collection in Solr using COMMAND LINE ?

3 Answers

Let's suppose you have download and placed the Solr binaries at the location /opt/apps/solr, then you can create a collection in the following manner.

cd /opt/apps/solr/bin 
./solr create -c {collectionName} -n {configName} -p 8983

Done!

Related