[Koha-bugs] [Bug 32040] New: Default operator of 'AND' for search terms should be configurable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Oct 28 21:03:15 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32040
Bug ID: 32040
Summary: Default operator of 'AND' for search terms should be
configurable
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Searching
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
When a librarian or a patron makes a mistake on a title:
i.e.: what color is my parachute
for: what color is your parachute
They can end up with no results.
In playing around in Elastic, changing default operator to 'OR' and providing a
'minimum_should_match' allow for this search to succeed - the lower the should
was, the more hits I got, but making it an option would be interesting.
Koha/SearchEngine/Elasticsearch/QueryBuilder.pm
200 $res->{query} = {
201 query_string => {
202 query => $query,
203 fuzziness => $fuzzy_enabled ? 'auto' : '0',
204 default_operator => 'AND',
205 fields => $fields,
206 lenient => JSON::true,
207 analyze_wildcard => JSON::true,
208 }
209 };
Will try to poc something
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list