[Koha-bugs] [Bug 19905] New: Don't append wildcard to query terms
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 2 16:26:25 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19905
Bug ID: 19905
Summary: Don't append wildcard to query terms
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Searching - Elasticsearch
Assignee: koha-bugs at lists.koha-community.org
Reporter: glasklas at gmail.com
Discovered this issue while testing the search links in biblio-details. The
links are hard-coded in the template with queries not using quotes for field
values, which makes QueryBuilder::_truncate_terms append '*' to the search
term. Since wild card searches skips the analyzer-phase, most of our links does
not work (since a lot of field values has word boundaries and/or punctuation
marks, for example the query "Provider:Taschen," will be converted to
"Provider:Taschen,*" and since the indexed value for Provider is "Taschen" this
search will produce no results.
In my opinion (if I'm not misunderstanding the purpose of this code) appending
'*' to words should be removed.
--
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