[Koha-bugs] [Bug 7246] rebuild_zebra.pl --limit option to allow partial re-indexing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 17 17:15:21 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7246

--- Comment #8 from Paul Poulain <paul.poulain at biblibre.com> 2012-01-17 16:15:21 UTC ---
Created attachment 7200
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7200
Bug 7246 add min/ofset and WHERE options to rebuild_zebra

This patch reimplement a feature that is on biblibre/master for
Koha-community/master

It adds 4 parameters:
* ofset = the ofset of record. Say 1000 to start rebuilding at the 1000th
record of your database
* min = how many records to export. Say 400 to export only 400 records
* WHERE = add a where clause to rebuild only a given itemtype, or anything you
want to filter on
* l = how many items should be export with biblios. This is a usefull option
when you have records with so many items that they can result in a record
higher than 99999bytes,  that zebra don't like at all

Another improvement resulting from ofset & min limit is the
rebuild_zebra_sliced.zsh
that will be submitted in another patch.
_sliced will slice your all database in small chunks, and, if something went
wrong for a given slice, will slice the slice, and repeat, until you reach a
slice size of 1, showing which record is wrong in your database.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list