Martin Renvoize
3e9b80e0a5
One should be able to override zebra configuration on a per instance basis. This patch adds /etc/koha/sites/instance to the 'profilePath' in the zebra config files such that that location is sources first for any override config files. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Great catch Martin. I thought this was already pushed by the way. Signed-off-by: Robin Sheat <robin@catalyst.net.nz> This will be useful. Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
59 lines
2.3 KiB
INI
59 lines
2.3 KiB
INI
# Simple Zebra configuration file that defines
|
|
# a database with MARCXML records.
|
|
# $Id: zebra.cfg,v 1.1.2.2 2006/05/09 12:03:16 rangi Exp $
|
|
#
|
|
# Where are the config files located?
|
|
profilePath:/etc/koha/sites/__KOHASITE__:/etc/koha/zebradb/biblios/etc:/etc/koha/zebradb/etc:/etc/koha/zebradb/marc_defs/__ZEBRA_MARC_FORMAT__/biblios:/etc/koha/zebradb/lang_defs/__ZEBRA_LANGUAGE__
|
|
# modulePath - where to look for loadable zebra modules
|
|
modulePath: /usr/lib/idzebra-2.0/modules:/usr/lib/x86_64-linux-gnu/idzebra-2.0/modules:/usr/lib/i386-linux-gnu/idzebra-2.0/modules:/usr/lib/aarch64-linux-gnu/idzebra-2.0/modules:/usr/lib/arm-linux-gnueabi/idzebra-2.0/modules:/usr/lib/arm-linux-gnueabihf/idzebra-2.0/modules:/usr/lib/mips-linux-gnu/idzebra-2.0/modules:/usr/lib/mipsel-linux-gnu/idzebra-2.0/modules:/usr/lib/powerpc-linux-gnu/idzebra-2.0/modules:/usr/lib/powerpc64le-linux-gnu/idzebra-2.0/modules:/usr/lib/s390x-linux-gnu/idzebra-2.0/modules
|
|
|
|
encoding: UTF-8
|
|
# Files that describe the attribute sets supported.
|
|
attset: bib1.att
|
|
attset: explain.att
|
|
attset: gils.att
|
|
|
|
# systag sysno rank
|
|
|
|
# Specify record type
|
|
# group .recordType[ .name ]: type
|
|
# type is split into fundamental type. file-read-type . argument
|
|
# http://www.indexdata.dk/zebra/doc/zebra-cfg.tkl
|
|
# http://www.indexdata.dk/zebra/doc/grs.tkl
|
|
|
|
# Can use -g iso2709 to batch index raw iso2709 records in a single or
|
|
# multiple files, or marcxml records that are split into separate files
|
|
# the trailing .record tells zebraidx to use record.abs
|
|
iso2709.recordType:grs.marcxml.record
|
|
|
|
# Can use -g marcxml to batch index marcxml files
|
|
# zebraidx uses record.abs because of <record> is the root element
|
|
marcxml.recordType:grs.sgml
|
|
|
|
# Koha uses grs.xml internally when updating a single record, no idea
|
|
# why it knows to use record.abs
|
|
recordType:grs.xml
|
|
|
|
recordId: (bib1,Local-number)
|
|
storeKeys:1
|
|
storeData:1
|
|
|
|
|
|
# Lock File Area
|
|
lockDir: /var/lock/koha/__KOHASITE__/biblios
|
|
perm.anonymous:ar
|
|
perm.kohauser:rw
|
|
passwd: /etc/koha/sites/__KOHASITE__/zebra.passwd
|
|
register: /var/lib/koha/__KOHASITE__/biblios/register:20G
|
|
shadow: /var/lib/koha/__KOHASITE__/biblios/shadow:20G
|
|
|
|
# Temp File area for result sets
|
|
setTmpDir: /var/lib/koha/__KOHASITE__/biblios/tmp
|
|
|
|
# Temp File area for index program
|
|
keyTmpDir: /var/lib/koha/__KOHASITE__/biblios/key
|
|
|
|
# Approx. Memory usage during indexing
|
|
memMax: 50M
|
|
rank:rank-1
|
|
truncmax: 1000000000
|