Bug 39598 - Make it possible to ignore apostrophe in searching (Zebra)
Summary: Make it possible to ignore apostrophe in searching (Zebra)
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Zebra (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-10 05:34 UTC by Aleisha Amohia
Modified: 2025-04-10 23:56 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleisha Amohia 2025-04-10 05:34:37 UTC
Similar to Bug 27153, but for Zebra

We understand we can add a transliterate rule in words-icu.xml, but would prefer to not maintain this on a server. It would be great if this could be toggled as a system preference, so that the rule is instance-specific.
Comment 1 Katrin Fischer 2025-04-10 06:35:44 UTC
I wonder how that could work with the Zebra configuration files as we cannot change them on the fly and manipulating the search query doesn't seem to be enough as I think you'd always have to change how things are indexed (ignoring apostrophes or not). I believe by default the normal apostrophes are ignored or could be added to the instance specific index configuration files (there is option option to have them instance specific IIRC, but we haven't used that feature)
Comment 2 David Cook 2025-04-10 23:56:37 UTC
From memory, Koha's Zebra config currently turns "David's" into "David s" using the ICU rules.

I don't know allt he details of bug 27153, but we probably could use the XSLTs to add a z:index entry for title-no-punctuation that would be "Davids" and have title be "David's", and then the ICU rule will just affect "title" and not "title-no-punctuation". 

I haven't looked at bug 27153 in a while though, so I'd have to review it to know what we're doing there for sure. 

And actually... since the Zebra XSLTs are generated from the XML... it might be quite annoying to achieve this anyway...