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: [email protected]
          Reporter: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to