[Koha-bugs] [Bug 27206] Elasticsearch sort by popularity must use totalissues search field

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 11 15:41:01 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27206

--- Comment #1 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 114344
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114344&action=edit
Bug 27206: Elasticsearch sort by popularity must use totalissues search field

With Zebra search engine, sort by popularity uses search field 9003.
This is from bib1.att : att 9003    totalissues
'totalissues' beeing on 942$0

Actually Elasticsearch sort by popularity uses search field 'issues' :
https://git.koha-community.org/Koha-community/Koha/src/commit/cae0ef76f398bb3d9f60235ff10611cc8d8eacb7/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm#L593

Test plan :
1) Use zebra search engine
2) Perform some checkouts and checkins
3) Run misc/cronjobs/update_totalissues.pl
4) Perform a search sorting on popularity
5) Change search engine to Elasticsearch
6) Rebuild all biblios : misc/search_tools/rebuild_elasticsearch.pl -b
7) Perform same search sorting on popularity
=> You should get same order

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list