Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
kb:solr [2016/02/21 12:22] – created yehuda | kb:solr [2022/01/03 16:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Solr ====== | ====== Solr ====== | ||
+ | [[http:// | ||
https:// | https:// | ||
Line 8: | Line 9: | ||
http:// | http:// | ||
https:// | https:// | ||
+ | |||
+ | [[.: | ||
+ | ===== Create cloud ===== | ||
+ | |||
+ | Delete query | ||
+ | <code xml> | ||
+ | < | ||
+ | </ | ||
+ | <code bash> | ||
+ | # Download and extract solr 4.9.1 | ||
+ | wget http:// | ||
+ | tar -zxvf solr-4.9.1.tgz | ||
+ | |||
+ | # Create nodes | ||
+ | cp -r solr-4.9.1/ | ||
+ | cp -r solr-4.9.1/ | ||
+ | cp -r solr-4.9.1/ | ||
+ | cp -r solr-4.9.1/ | ||
+ | |||
+ | # Run solr with 2 shards | ||
+ | cd node1 | ||
+ | java -DzkRun -DnumShards=2 -Dbootstrap_confdir=./ | ||
+ | |||
+ | # Run another shard | ||
+ | cd node2 | ||
+ | java -Djetty.port=7574 -DzkHost=localhost: | ||
+ | |||
+ | |||
+ | # Create replicas | ||
+ | cd node3 | ||
+ | java -Djetty.port=8900 -DzkHost=localhost: | ||
+ | |||
+ | cd node4 | ||
+ | java -Djetty.port=7500 -DzkHost=localhost: | ||
+ | </ |