-../../index/zebraidx -c $pp/zebra.cfg -l$LOG init
-../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update sample-marc
+
+if ../../index/zebraidx -c $pp/zebra.cfg -l $LOG filters|grep grs.marcxml >/dev/null ; then
+ ../../index/zebraidx -c $pp/zebra.cfg -l $LOG $DBG init
+else
+ exit 0
+fi
+
+../../index/zebraidx -c $pp/zebra.cfg -l$LOG -t grs.marcxml.record update $pp/sample-marc