diff --git a/bin/checkindex.sh b/bin/checkindex.sh new file mode 100755 index 000000000..ef2bd3364 --- /dev/null +++ b/bin/checkindex.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 ..