[Koha-bugs] [Bug 20334] Elasticsearch - Option for escaping slashes in search queries

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 15 08:16:07 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20334

--- Comment #29 from Ere Maijala <ere.maijala at helsinki.fi> ---
I don't really like the fact that a pref may affect how the search terms are
interpreted. I'd rather go without the pref and try to do the right
automatically: if the term looks like a regexp (i.e. start and ends with a
slash), don't escape it so that regexp can be used. Otherwise escape the
slashes. Could also additionally validate the regexp to make sure it works. I
think this would eliminate the need to for the pref while keeping the
versatility and the regular searches working properly.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list