User manual
Installing Koha's Zebra Search Engine
To ensure that zebrasry
starts when the machine reboots we use the
chkconf ig
command:
linux -4yut: /home /koha # sudo chkconfig koha- zebra - daemon on
Rebuilding Zebra
Let us now test the second key Zebra related component
- rebuild_zebra . pl.
This
program is used to maintain Zebra's search indexes.
The program can be found in the folder
misc /migration_tools
under the
kohac lone
folder:
linux -4yut: /usr /share /kohaclone # cd misc /migration tools/
linux -4yut: /usr /share / kohaclone /misc /migration_ tools/ # vi rebuild_zebra.
pl
To learn about the usage of this program, run it with the
- -help
or -
-h
option:
linux -4yut: /home /koha # sudo
. /rebuild_zebra.pl - -help
. /rebuild_zebra.pl: reindex MARC bibs and /or authorities in Zebra.
Use this batch job to reindex all biblio or authority records in your Koha database.
This job is useful only if you are using Zebra; if you are using the 'NoZebra' mode,
this job should not be used.
Parameters
Description
- b
Index bibliographic records.
-a
Index authority records.
- z
Select only updated and deleted records marked in the
zebraqueue
table. Cannot be used with
-r or -s.
-r
Clear Zebra index before adding records to index.
- d
Temporary directory for indexing. If not specified, one is automatically
created. The export directory is automatically deleted unless you supply
the -k switch.
-k
Do not delete export directory.
Skip export. Used if you have already exported the records in a previous
run.
Index from ISO MARC blob instead of MARC XML. This option is
recommended only for advanced user.
Export and index as XML instead of is02709 (biblios only).Use this if you
might have records > 99,999 chars.
[4s]