[Koha-bugs] [Bug 23089] New: Elasticsearch - cannot sort on non-text fields
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jun 10 14:30:37 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23089
Bug ID: 23089
Summary: Elasticsearch - cannot sort on non-text fields
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: nick at bywatersolutions.com
Target Milestone: ---
issues is defined as an sum field, this is interpreted to ES as integer,
however, the issues__sort field is stored as keyword.
Attempting to order search results by 'popularity' fails from ES - because we
can't use text fields, we have to use a 'keyword' field.
In our biblio search indexes this is fine because our __sort fields all get a
phrase keyword field
We onyl set field__sort.phrase for text fields though, so issues__sort doesn't
use the phrase field, even though it exists
Adding a test to try to ilustrate what I am saying here
To recreate:
1 - Enable and index ES
2 - Search on staff client or OPAC
3 - Attempt to sort by popularity
4 - It fails, check the error logs to see why
--
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