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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to