[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 12 14:30:20 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27597
Nick Clemens <nick at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #117856|0 |1
is obsolete| |
Attachment #117857|0 |1
is obsolete| |
--- Comment #13 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 118190
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118190&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>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list