Bugzilla – Attachment 114344 Details for
Bug 27206
Elasticsearch sort by popularity must use totalissues search field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27206: Elasticsearch sort by popularity must use totalissues search field
Bug-27206-Elasticsearch-sort-by-popularity-must-us.patch (text/plain), 1.69 KB, created by
Fridolin Somers
on 2020-12-11 14:41:01 UTC
(
hide
)
Description:
Bug 27206: Elasticsearch sort by popularity must use totalissues search field
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2020-12-11 14:41:01 UTC
Size:
1.69 KB
patch
obsolete
>From f11470ceb8955e6ea19a1fd3aa946aa4d6467b09 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Fri, 11 Dec 2020 15:35:46 +0100 >Subject: [PATCH] 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 >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index e00fc5a523..414e869b46 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -590,7 +590,7 @@ sub _convert_sort_fields { > acqdate => 'date-of-acquisition', > author => 'author', > call_number => 'local-classification', >- popularity => 'issues', >+ popularity => 'totalissues', > relevance => undef, # default > title => 'title', > pubdate => 'date-of-publication', >-- >2.29.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27206
: 114344