Bug 25963

Summary: Koha converts ":" to "=" in search terms for Zebra which causes search to fail
Product: Koha Reporter: David Cook <dcook>
Component: Searching - ZebraAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P5 - low    
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description David Cook 2020-07-09 04:06:18 UTC
Koha changes : to = because Zebra uses = to separate indexes from search terms, but this is problematic, because it transforms all colons.

For instance, "title : subtitle" will become "title = subtitle" and that will cause a Zebra error.

Here's the bug removed:

buildQuery
eb6b10f8 (Chris Nighswonger 2010-02-01 23:18:09 -0500 1768) # $query =~ s/:/=/g;

Here's the bug re-introduced.
getRecords
08c15831 (Joe Atzberger 2009-07-08 15:27:45 -0500 381) $query_to_use =~ s/\:/\=/g; # change : to = last minute (FIXME)
Comment 1 David Cook 2024-12-24 01:39:18 UTC
Since Zebra is on the outs, I'd say this could probably be marked as RESOLVED WON'T FIX...
Comment 2 Katrin Fischer 2024-12-26 18:08:49 UTC
(In reply to David Cook from comment #1)
> Since Zebra is on the outs, I'd say this could probably be marked as
> RESOLVED WON'T FIX...

I am not sure we can say that Zebra is on the outs. I believe it still has its place in a lot of installations. By default, Koha installs with Zebra.