[Koha-bugs] [Bug 21534] ElasticSearch - Dash is considered like a boolean operator
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu May 30 22:21:03 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21534
Michal Denar <black23 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #90187|0 |1
is obsolete| |
--- Comment #8 from Michal Denar <black23 at gmail.com> ---
Created attachment 90207
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90207&action=edit
Bug 21534: Always compute wildcards
You get no results when searching with an hyphen + with * in query string (or
with preference QueryAutoTruncate) :
ie /cgi-bin/koha/opac-search.pl?q=saints-anges*
Looks like query-string by default does not compute wildcards, see
analyze_wildcard in :
https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html
Test plan :
1) Use Elasticsearch
2) Create a record with "saints-anges"
3) Search for "saints-anges" => you get results
4) Search for "saints-anges*" => you get results
5) Search for "saints-ang*" => you get results
Signed-off-by: Michal Denar <black23 at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list