[Koha] Zebra Rebuild
Michael Kuhn
mik at adminkuhn.ch
Wed Aug 12 08:38:14 NZST 2015
Hi Sergio
> How does the zebra reindex works? I am importing and reverting files with
> 30k or more records, and I dont know if my zebra index is being rebuilded,
> I run the script to do it manually, but shouldn´t the index be rebuilded
> automatically? Do I have to configurate something on the server or the koha?
If you installed Koha 3.20 using packages you may use the following
commands. INSTANCE stands for the name of your Koha instance.
First drop the current indices (authorities and/or biblios).
# zebraidx -c /etc/koha/sites/INSTANCE/zebra-authorities-dom.cfg -g
iso2709 -d authorities init
# zebraidx -c /etc/koha/sites/INSTANCE/zebra-biblios.cfg -g iso2709 -d
biblios init
Then rebuild the indices.
# koha-rebuild-zebra -f -v INSTANCE
You will then see some output like the following:
Zebra configuration information
================================
Zebra biblio directory = /var/lib/koha/sbtreu/biblios
Zebra authorities directory = /var/lib/koha/sbtreu/authorities
Koha directory = /usr/share/koha/intranet/cgi-bin
Lockfile = /var/lock/koha/sbtreu/rebuild/rebuild..LCK
BIBLIONUMBER in : 999$c
BIBLIOITEMNUMBER in : 999$d
================================
skipping authorities
====================
exporting biblio
====================
1.....................................
...
13409..........................................................................................
Records exported: 13409
====================
REINDEXING zebra
====================
====================
CLEANING
====================
Zebra configuration information
================================
Zebra biblio directory = /var/lib/koha/sbtreu/biblios
Zebra authorities directory = /var/lib/koha/sbtreu/authorities
Koha directory = /usr/share/koha/intranet/cgi-bin
Lockfile = /var/lock/koha/sbtreu/rebuild/rebuild..LCK
BIBLIONUMBER in : 999$c
BIBLIOITEMNUMBER in : 999$d
================================
====================
exporting authority
====================
Records exported: 0
====================
REINDEXING zebra
====================
skipping biblios
====================
CLEANING
====================
Hope this helps.
Kind regards, Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
More information about the Koha
mailing list