Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
kb:solr [2016/02/21 12:22] – created yehudakb:solr [2022/01/03 16:03] (current) – external edit 127.0.0.1
Line 1: Line 1:
 ====== Solr ====== ====== Solr ======
 +[[http://project.carrot2.org/index.html|Carro2 Project]], [[http://lucene.apache.org/solr/resources.html|Solr]]
  
 https://wiki.apache.org/solr/SolrCloud https://wiki.apache.org/solr/SolrCloud
Line 8: Line 9:
 http://wiki.apache.org/solr/SolrCloud http://wiki.apache.org/solr/SolrCloud
 https://cwiki.apache.org/confluence/display/solr/How+SolrCloud+Works https://cwiki.apache.org/confluence/display/solr/How+SolrCloud+Works
 +
 +[[.:solr:performance_tune|Performance Tuning]]
 +===== Create cloud =====
 +
 +Delete query
 +<code xml>
 +<delete><query>*:*</query></delete>
 +</code>
 +<code bash>
 +# Download and extract solr 4.9.1
 +wget http://archive.apache.org/dist/lucene/solr/4.9.1/solr-4.9.1.tgz
 +tar -zxvf solr-4.9.1.tgz
 +
 +# Create nodes
 +cp -r solr-4.9.1/example/ node1
 +cp -r solr-4.9.1/example/ node2
 +cp -r solr-4.9.1/example/ node3
 +cp -r solr-4.9.1/example/ node4
 +
 +# Run solr with 2 shards
 +cd node1
 +java -DzkRun -DnumShards=2 -Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf -jar start.jar
 +
 +# Run another shard
 +cd node2
 +java -Djetty.port=7574 -DzkHost=localhost:9983 -jar start.jar
 +
 +
 +# Create replicas
 +cd node3
 +java -Djetty.port=8900 -DzkHost=localhost:9983 -jar start.jar
 +
 +cd node4
 +java -Djetty.port=7500 -DzkHost=localhost:9983 -jar start.jar
 +</code>
kb/solr.1456057346.txt.gz · Last modified: (external edit)
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0