Bug 28609 - Popularity sort is broken
Summary: Popularity sort is broken
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Searching - Zebra (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-21 14:08 UTC by Katrin Fischer
Modified: 2023-12-28 20:42 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2021-06-21 14:08:31 UTC
Bug 13976 reported that the sort by popularity was only alphabetic and not numeric. I cannot confirm that... because now it's broken.

When sorting by popularity the result list is sorted by biblionumber instead, which is the usual fallback when values are identical.

When searching issues:74 or popluarity:74 records where the items have this number of issues are found correctly. So it appears the index is there and filled, but somehow not working when used for sorting?

Verified in 18.11 and 20.11.
Comment 1 Marcel de Rooy 2023-04-05 12:31:27 UTC
See bug 13976.
I also had a struggle to get it working. You need a preference or the cron job to get the sum of issues into the biblioitems.totalissues column first.

Closing this report.