yacy_search_server/bin/checkindex.sh

9 lines
213 B
Bash
Executable File

#!/usr/bin/env sh
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 ..