When searching for authorities, in the results table, the column "Used in" contains a different value from the counter shown at the details page of that authority. The first count comes from https://github.com/Koha-Community/Koha/blob/v21.05.07/Koha/SearchEngine/Elasticsearch/Search.pm#L263 The second one comes from https://github.com/Koha-Community/Koha/blob/v21.05.07/Koha/Authorities.pm#L55 This last subroutine may return an incorrect value because the querybuilder adds a * at the end. Eg. "query": "(koha-auth-number:722*)" Maybe we can replace simple_search_compat with count_auth_use
Indeed its a bug. Already reported in Bug 26608 *** This bug has been marked as a duplicate of bug 26608 ***
Thanks for this report. Best regards,