View | Details | Raw Unified | Return to bug 20334
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_20334-add-syspref-QueryRegexEscapeOptions.sql (-1 / +1 lines)
Line 1 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type`) VALUES  ('QueryRegexEscapeOptions', 'dont_escape', 'dont_escape|escape|unescape_escaped', 'Escape option for regexps delimiters in Elasicsearch queries.', 'Choice');
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type`) VALUES  ('QueryRegexEscapeOptions', 'escape', 'dont_escape|escape|unescape_escaped', 'Escape option for regexps delimiters in Elasicsearch queries.', 'Choice');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-2 / +2 lines)
Lines 31-41 Searching: Link Here
31
            - ranking of search results by relevance (REQUIRES ZEBRA).
31
            - ranking of search results by relevance (REQUIRES ZEBRA).
32
        -
32
        -
33
            - pref: QueryRegexEscapeOptions
33
            - pref: QueryRegexEscapeOptions
34
              default: escape
34
              choices:
35
              choices:
35
                  escape: Escape
36
                  escape: Escape
36
                  unescape_escaped: Unescape escaped
37
                  unescape_escaped: Unescape escaped
37
                  dont_escape: Don't escape
38
                  dont_escape: Don't escape
38
            - "regular expressions within query strings. If \"Unescape escaped\" is selected this will allow writing regular expressions \"\/like this\/\" while \"/this/\", \"or/this\" will be escaped and interpreted by Elasticsearch as regular strings."
39
            - "regular expressions within query strings. If \"Escape\" is selected occurences of \"/\" in search terms will be automatically escaped, and regular expressions interpreted as regular strings. If \"Unescape escaped\" is selected this will allow writing regular expressions \"\/like this\/\" while \"/this/\", \"or/this\" will be escaped and interpreted as regular strings. (Elasticsearch only.)"
39
        -
40
        -
40
            - pref: OpacGroupResults
41
            - pref: OpacGroupResults
41
              default: 0
42
              default: 0
42
- 

Return to bug 20334