[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 14:42:16 CET 2019


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

--- Comment #31 from David Gustafsson <glasklas at gmail.com> ---
Hi! I see two major problems with this approach. Firstly, I don't think
librarians generally expect, for example, the search terms "Directive 95/46/EC"
to be interpreted as containing a regular expression. I would guess that the
fraction of librarians who would ever use regular expressions in searches can
be rounded down to zero :) I would probably never use it myself.

The second problem is that it's probably really nasty to implement as a regular
expression, perhaps not even possible, that is: escaping of unescaped slashes
if the slash is odd and not in a quoted context. Would probably have to write
some kind of parser. Since I think that strings within slashes are generally
not meant to be regexps by those who generally use the search interface I went
for the two options either to disable them completely, or be allowed, but using
a syntax that one would probably not enter accidentally.

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


More information about the Koha-bugs mailing list