[Koha-devel] Zebra hyphen truncating search Part Deux

David Cook dcook at prosentient.com.au
Wed Feb 4 03:33:40 CET 2015


Robin just pointed out that Debian Jessie (8) will be switching to 2.0.59
and I noticed that Ubuntu Vivid (15.04) will as well.

That means that Koha package installs that use ICU on these newer OSes will
start running into this problem as well. (Actually, most newer OSes will
have this issue. OpenSuse 13.2 released in November 2014 is using 2.0.59.)

So... that's not good. 

We first ran into this problem because of a barcode search "ABC-12345" was
returning all barcodes that started with "ABC". 

However, you'll run into this problem for a lot of keyword and title
searches. For instance "Mont-Royal" will return all records containing
"Mont". 

Note that this is only for ICU. If you're using CHR, "Mont-Royal" will just
get you records that have "Mont" and "Royal" in them (since Zebra/YAZ breaks
on hyphens when using CHR character mapping).

Anyway, I've sent an email to Indexdata, so I'm going to try pursuing this
with them as much as possible...

David Cook
Systems Librarian
Prosentient Systems
72/330 Wattle St, Ultimo, NSW 2007

> -----Original Message-----
> From: Colin Campbell [mailto:colin.campbell at ptfs-europe.com]
> Sent: Tuesday, 3 February 2015 8:03 PM
> To: David Cook
> Cc: 'Colin Campbell'; koha-devel at lists.koha-community.org
> Subject: Re: Zebra hyphen truncating search
> 
> On Tue, Feb 03, 2015 at 05:16:05PM +1100, David Cook wrote:
> > Hi Colin!
> >
> >
> >
> > I stumbled across an email you sent to the Indexdata Zebralist in 2013:
> > http://lists.indexdata.dk/pipermail/zebralist/2013-August/002576.html
> >
> >
> >
> > Were you ever able to solve those problems?
> 
> I think its still the case. It can be further complicated by what the
settings in
> the system are and how Search.pm interprets them in constructing the
> search. Especially the relevancy options.
> >
> > Also, what version of Zebra were you running? I've noticed this
> > problem with Zebra using 2.0.59, but I haven't been able to produce it
> > using Zebra 2.0.47. I had the exact same configuration files, MySQL
> > database, and Zebra indexes. Here's an example:
> It would be the current releases from indexdata on Debian and also built
> from source on Fedora. The indexdata debian packages track the source
> closely.
> 
> Cheers
> Colin
> 
> --
> Colin Campbell
> Chief Software Engineer,
> PTFS Europe Limited
> Content Management and Library Solutions
> +44 (0) 800 756 6803 (phone)
> +44 (0) 7759 633626  (mobile)
> colin.campbell at ptfs-europe.com
> skype: colin_campbell2
> 
> http://www.ptfs-europe.com




More information about the Koha-devel mailing list