[Koha-bugs] [Bug 30883] New: Authorities merge is limited to 100 biblio with Elasticsearch
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 2 09:13:18 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30883
Bug ID: 30883
Summary: Authorities merge is limited to 100 biblio with
Elasticsearch
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P5 - low
Component: Searching - Elasticsearch
Assignee: koha-bugs at lists.koha-community.org
Reporter: fridolin.somers at biblibre.com
In C4::AuthoritiesMarc::merge, we search all biblio records using an authority
with Koha::Authorities->linked_biblionumbers().
This method uses simple_search_compat() with no results limit, even saying in
comment :
# if max_results is undefined, we will get all results
https://git.koha-community.org/Koha-community/Koha/src/commit/44d6528b566e5c16eba9b15f8aa24667293766c3/Koha/Authorities.pm#L80
With Zebra searchengin it is correct.
But not with Elasticsearch, there is an hardcoded limit at 100 in case no limit
is given :
https://git.koha-community.org/Koha-community/Koha/src/commit/44d6528b566e5c16eba9b15f8aa24667293766c3/Koha/SearchEngine/Elasticsearch/Search.pm#L346
This means authorities links are wrong after a merge or an edit in case the
authority is used in more than 100 biblio records.
:(
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list