Koha-clms/t/Koha
Jonathan Druart 622a68f695 Bug 27597: Remove leading colon in ES query
If we are searching on kw there is a leading colon at the beginning of
the generated query:
  kw:foo becomes :foo

Note that it only happens when there is no other terms before.

Test plan:
0. Don't apply the patch
1. Search for kw:foo
2. Notice the error
  Error: Unable to perform your search. Please try again.
and the logs say
  Failed to parse query [(:foo*)]
3. Apply the patch
4. Repeat the search and notice that you know get:
   "12 result(s) found for 'kw:foo'."

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 1ff9160a62)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 988e119829)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2021-03-23 14:41:06 +00:00
..
Authority Bug 14769: (QA follow-up) Remove global var $cached_indicators 2018-04-12 10:50:36 -03:00
I18N/po/xx_XX/LC_MESSAGES Bug 15395: Allow correct handling of plural translation 2018-11-08 15:55:50 +00:00
Middleware Bug 25950: Remove <client> in X-Forwarded-For from proxy tests 2020-07-24 21:22:17 +00:00
Plugins Bug 23050: (QA follow-up) Add Koha::Plugins::Tab class 2019-11-05 08:13:59 +00:00
REST/Plugin Bug 27680: (QA follow-up) Update test for dbic_merge_sorting 2021-03-05 21:32:24 +00:00
SearchEngine Bug 27597: Remove leading colon in ES query 2021-03-23 14:41:06 +00:00
Util Bug 26127: local_referer should not compare with OPACBaseURL case insensitive 2020-09-03 15:23:13 +00:00
Config.t Bug 19760: Fix Config.t test 2017-12-22 14:04:52 -03:00
Exceptions.t Bug 26171: (QA follow-up) Add table name and object type to message 2021-01-10 20:43:35 +00:00
I18N.t Bug 15395: Allow correct handling of plural translation 2018-11-08 15:55:50 +00:00
ItemType.t Bug 24545: Fix license statements 2020-02-24 13:31:26 +00:00
RDF.t Bug 18586: Create module to mint RDF subject URIs 2018-08-09 12:11:16 +00:00
Script.t Bug 25109: Add 'wait' tests 2020-04-14 16:57:01 +01:00
Script_cron.t Bug 17845: Remove some missed references to branchprinter 2020-03-10 15:18:28 +00:00
Z3950responder.t Bug 13937: Fix issues found in QA 2019-10-08 14:39:50 +01:00
sleep.pl Bug 25109: Add ->new and ->lock_exec to Koha::Script 2020-04-14 16:56:57 +01:00
wait.pl Bug 25109: Add 'wait' tests 2020-04-14 16:57:01 +01:00