Koha-clms/t/Koha/SearchEngine
Jonathan Druart 1ff9160a62 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>
2021-03-16 12:04:03 +01:00
..
Elasticsearch Bug 27597: Remove leading colon in ES query 2021-03-16 12:04:03 +01:00
Zebra Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
Search.t Bug 23763: (QA follow-up) Add +x to Search.t file permissions 2021-02-08 17:09:32 +01:00