How
to Enable Unicode / UTF-8 in Koha and Zebra
To enable Zebra to search unicode
multilingual data
We need icu installed
· 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_US.UTF-8″>
· Save and changes and grant ownership
of all copied files to koha:koha
- Sudo chown -R koha:koha /etc/koha/zebradb/etc
· Edit
/etc/koha/zebradb/zebra-biblios.cfg add line index: icu.idx
· Edit
/etc/koha/zebradb/zebra-authorities.cfg add line index: icu.idx
· Restart zebra server and queue
daemons
- sudo /etc/init.d/koha-zebra-daemon restart
- sudo /etc/init.d/koha-zebraqueue-daemon restart
· Rebuild zebra index
- cd /usr/share/koha/bin/migration_tools ./rebuild_zebra.pl -b -r
No comments:
Post a Comment