2
Enabling ICU support in Zebra 2.0 for Unicode searching in KOHA #sudo apt-get install libicu-dev libicu38 yaz-icu Copy following files from: /usr/share/idzebra-2.0/tab/ to /etc/koha/zebradb/etc/ icu.idx phrases-icu.xml string.chr words-icu.xml Copy /etc/koha/zebradb/etc/words-icu.xml to /etc/koha/zebradb/etc/icu.xml Edit /etc/koha/zebradb/etc/icu.xml change <icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8"> Save and change ownership of all copied files to koha:koha # chown -R koha:koha /etc/koha/zebradb/etc Edit /etc/koha/zebradb/zebra-biblios.cfg add line index: icu.idx Restart zebra server and queue daemons # /etc/init.d/koha-zebra-daemon restart # /etc/init.d/koha-zebraqueue-daemon restart

ICU Support in Zebra

Embed Size (px)

DESCRIPTION

Uploaded from Google Docs

Citation preview

Page 1: ICU Support in Zebra

Enabling ICU support in Zebra 2.0 for Unicode searching in KOHA

#sudo apt-get install libicu-dev libicu38 yaz-icu

Copy following files from:

/usr/share/idzebra-2.0/tab/ to /etc/koha/zebradb/etc/○ icu.idx○ phrases-icu.xml○ string.chr○ words-icu.xml

Copy /etc/koha/zebradb/etc/words-icu.xml to /etc/koha/zebradb/etc/icu.xml

Edit /etc/koha/zebradb/etc/icu.xml change <icu_chain locale="en"> to <icu_chain locale="en_IN.UTF-8">

Save and change ownership of all copied files to koha:koha

# chown -R koha:koha /etc/koha/zebradb/etc

Edit /etc/koha/zebradb/zebra-biblios.cfgadd lineindex: icu.idx

Restart zebra server and queue daemons

# /etc/init.d/koha-zebra-daemon restart# /etc/init.d/koha-zebraqueue-daemon restart

Rebuild zebra index

# KOHA_CONF=/etc/koha/koha-conf.xml # PERL5LIB=/usr/share/koha/lib # /usr/share/koha/bin/migration_tools/rebuild_zebra.pl -b -r -v -w

Using yaz-client to verify zebra is working

Page 2: ICU Support in Zebra

#yaz-client

z>auth kohauser zebrastripesz>open unix:/var/run/koha/zebradb/bibliosocketz>base bibliosz>f ” ”पाँ��डे�z>sz>q

Adjusting Koha System Preferences to correctly search our multilingual data in Koha staff client

Home → Administration → System Preferences → SearchingTurn off QueryFuzzy ( maybe and QueryWeightFields)