[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
Wed May 29 15:46:08 CEST 2019


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

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

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


More information about the Koha-bugs mailing list