[Koha-bugs] [Bug 27597] Searching "kw:term" does not work with Elasticsearch

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 5 14:56:10 CET 2021


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

Fridolin Somers <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #116241|0                           |1
        is obsolete|                            |

--- Comment #9 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 117856
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=117856&action=edit
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 at biblibre.com>

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


More information about the Koha-bugs mailing list