[Koha-bugs] [Bug 27070] New: Elasticsearch - with Elasticsearch 6 searches failing unless all terms are in the same field
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Nov 20 20:09:50 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27070
Bug ID: 27070
Summary: Elasticsearch - with Elasticsearch 6 searches failing
unless all terms are in the same field
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Searching - Elasticsearch
Assignee: koha-bugs at lists.koha-community.org
Reporter: nick at bywatersolutions.com
To recreate - be using Elasticsearch 6 in KOha
On sample data try searching for:
street shuffle
cool, that works
Now try searching for a word from title and the publisher name:
shuffle constable
No results, odd.
Try searching for:
shuffle AND constable
That works.
I cannot figure from the docs why this is the case - we pass a default
operator, that should be enough I thought, but no.
https://www.elastic.co/guide/en/elasticsearch/reference/6.8/query-dsl-query-string-query.html#query-string-syntax
for comparison:
https://www.elastic.co/guide/en/elasticsearch/reference/5.6/query-dsl-query-string-query.html
After testing the type => 'cross_fields' seems to do what we want
--
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