[Koha-bugs] [Bug 21534] ElasticSearch - Wildcards not being analyzed

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 14 19:57:31 CEST 2019


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

Nick Clemens <nick at bywatersolutions.com> changed:

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

--- Comment #15 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 90614
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90614&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>

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