Solr

Create cloud

Delete query

<delete><query>*:*</query></delete>
# 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
kb/solr.txt · Last modified: 2017/05/22 08:03 by yehuda
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0