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: 2022/01/03 16:03 by 127.0.0.1
Back to top
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0