[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
Sun Jan 29 14:50:57 CET 2012


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

Jared Camins-Esakov <jcamins at cpbibliography.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #7200|0                           |1
        is obsolete|                            |

--- Comment #10 from Jared Camins-Esakov <jcamins at cpbibliography.com> 2012-01-29 13:50:57 UTC ---
Created attachment 7379
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7379
Bug 7246 add min/offset and WHERE options to rebuild_zebra

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

It adds 4 parameters:
* offset = 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.

Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

-- 
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