[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 Oct 4 09:11:54 CEST 2019


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

--- Comment #50 from sandboxes at biblibre.com <sandboxes at biblibre.com> ---
Created attachment 93664
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=93664&action=edit
Bug 20334 - Option for escaping slashes in search queries

Add "QueryRegexEscapeOption" system preference to provide option to escape
Elasticsearch regexp delimiters (/) within queries, or alternativly to
unescape escaped slashes (\/) while escaping unescaped slashes, in
effect making "\/" the new regexp delimiter.

How to test:
1) Run tests in ./t/Koha/SearchEngine/ElasticSearch/QueryBuilder.t
2) All tests should succeed

Signed-off-by: Nicolas Legrand <nicolas.legrand at bulac.fr>
Signed-off-by: Maksim Sen <maksim.sen at inlibro.com>

Signed-off-by: Séverine QUEUNE <severine.queune at bulac.fr>

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


More information about the Koha-bugs mailing list