[Koha-bugs] [Bug 26051] Elasticsearch field local-classification must be sortable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sun Dec 27 17:41:06 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26051
Victor Grousset/tuxayo <victor at tuxayo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #107237|0 |1
is obsolete| |
--- Comment #2 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 114707
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114707&action=edit
Bug 26051: Elasticsearch field local-classification sort=1 in mapping.yaml
With Elasticsearch the search field use for sorting by callnumber is
"local-classification" (from
Koha::SearchEngine::Elasticsearch::QueryBuilder::_convert_sort_fields).
So this search field must be sortable in default mappings.yaml.
If not you see this error in logs :
No mapping found for [local-classification__sort]
Test plan :
1) Install Koha with Elasticsearch with mappings.yaml from sources
(admin/searchengine/elasticsearch/mappings.yaml)
It should be the case on all developement instalations
2) Reset mappings (Administration › Search engine configuration
(Elasticsearch))
3) Rebuild indexes: misc/search_tools/rebuild_elasticsearch.pl -v -d
4) Perform a search
5) Check sorting by callnumber is OK (add some call numbers if
necessary)
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list