[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
Fri May 31 22:03:46 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21534
Arthur Bousquet <arthur.bousquet at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #90207|0 |1
is obsolete| |
--- Comment #14 from Arthur Bousquet <arthur.bousquet at inlibro.com> ---
Created attachment 90260
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90260&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>
Signed-off-by: Arthur Bousquet <arthur.bousquet at inlibro.com>
Current status: Signed Off
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list