[Koha-bugs] [Bug 20334] New: Option for escaping slashes in search queries
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 5 13:49:20 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20334
Bug ID: 20334
Summary: Option for escaping slashes in search queries
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Searching - Elasticsearch
Assignee: koha-bugs at lists.koha-community.org
Reporter: glasklas at gmail.com
There are a number of reserved characters in the Elasticsearch query syntax (+
- = && || > < ! ( ) { } [ ] ^ " ~ * ? : \ /). Slash (/), which is used for
regexps, is quite often used in searches with the intent as it should be
interpreted as a literal sting. This causes the search to crash since
Elasticsearch treats this as an unclosed regular expression (or a regexp if two
slashes are used which can be even more confusing). To address this particular
case here is a patch with an option to escape slashes (or require them to be
escaped to count as a regular expression delimiter).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list