[英]Solr 6 Setup with managed schema and cloud
Dear Awesome SF community, 尊敬的SF社区,
My question is about how to start with Solr 6 with dynamic/managed schema and SolrCloud. 我的问题是关于如何从具有动态/托管模式和SolrCloud的Solr 6开始。
I have used Solr 5 and 4. There used be a command "solrctl", using solrctl, we can create instance directory and setup collection. 我已经使用过Solr 5和4。使用过一个命令“ solrctl”,使用solrctl,我们可以创建实例目录和设置集合。
eg 例如
solrctl instancedir --generate $SOLR_HOME/dyndoc solrctl instancedir-生成$ SOLR_HOME / dyndoc
solrctl instancedir --create dyndoc $SOLR_HOME/dyndoc solrctl instancedir-创建dyndoc $ SOLR_HOME / dyndoc
solrctl collection --create dyndoc -s 1 -r 2 solrctl collection-创建dyndoc -s 1 -r 2
With solr 6, solrctl is gone. 使用solr 6时,solrctl消失了。
Can someone give me a pointer on how to achieve the same. 有人可以给我指点一下如何实现这一点。 (OR I need to use REST API)
(或者我需要使用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. solr实用程序现在仅命名为
solr
,并捆绑在您下载的Solr归档文件中的bin/solr
中。
$ 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: 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.