简体   繁体   中英

Solr 6 Setup with managed schema and cloud

Dear Awesome SF community,

My question is about how to start with Solr 6 with dynamic/managed schema and SolrCloud.

I have used Solr 5 and 4. There used be a command "solrctl", using solrctl, we can create instance directory and setup collection.

eg

solrctl instancedir --generate $SOLR_HOME/dyndoc

solrctl instancedir --create dyndoc $SOLR_HOME/dyndoc

solrctl collection --create dyndoc -s 1 -r 2

With solr 6, solrctl is gone.

Can someone give me a pointer on how to achieve the same. (OR I need to use REST API)

Thanks in advance.

The solr utility is now named just solr and is bundled in bin/solr in the Solr archive you download.

$ bin/solr
Usage: solr COMMAND OPTIONS
   where COMMAND is one of: start, stop, restart, status, healthcheck, create, create_core, create_collection, delete, version, zk

Example for create_collection:

$ bin/solr create_collection -help

Usage: solr create_collection [-c collection] [-d confdir] [-n configName] [-shards #] [-replicationFactor #] [-p port]

  -c <collection>         Name of collection to create

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM