Currently, the only way to get indexes reset is to run the zebraidx... init by hand on each database (authorities or biblios). This leads to several problems: ownership, permission, wrong paths, etc.
Created attachment 18639 [details] [review] Bug 10399 - rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty This patch add the reset_indexes sub to the rebuild_zebra.pl script. And changes the scripts' logic to run it in case -r was passed and there are no records pending on the zebraqueue table. Regards To+
Test plan please. I cannot find a situation that triggers the new sub! I tried misc/migration_tools/rebuild_zebra.pl -b -v -r -s