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: [email protected]
Reporter: [email protected]
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.
_______________________________________________
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/