Bug 10399

Summary: rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: Command-line UtilitiesAssignee: Galen Charlton <gmcharlt>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P5 - low CC: kyle.m.hall
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 10399 - rebuild_zebra.pl should reset the indexes with -r even if zebraqueue empty

Description Tomás Cohen Arazi (tcohen) 2013-06-04 13:08:13 UTC
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.
Comment 1 Tomás Cohen Arazi (tcohen) 2013-06-04 13:22:01 UTC
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+
Comment 2 Kyle M Hall 2013-06-07 13:28:42 UTC
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