Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

added a script which can check the solr index for inconsistencies while the peer is down. This shall be used in emergency cases where a check or fix for a broken solr index is needed.

Michael Peter Christenbfaf42b0b8c7
diff --git a/bin/checksolr.sh b/bin/checksolr.sh
new file mode 100755
index 000000000..ef2bd3364
--- /dev/null
+++ b/bin/checksolr.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+cd "`dirname $0`/.."
+for i in DATA/INDEX/* ; do
+ if [ -d "$i" ]; then
+ java -cp 'lib/*' org.apache.lucene.index.CheckIndex $i/SEGMENTS/solr_46/collection1/data/index/ -fix
+ fi
+done
+cd ..