Summary: | Authorities: linked biblios is inconsistent using elasticsearch and QueryAutoTruncate | ||
---|---|---|---|
Product: | Koha | Reporter: | Alex Arnaud <alex.arnaud> |
Component: | Searching - Elasticsearch | Assignee: | Alex Arnaud <alex.arnaud> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P5 - low | CC: | david, f.demians, fribeiro, fridolin.somers |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24143 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29048 |
||
Change sponsored?: | --- | Patch complexity: | Small patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Bug 26608: Elasticsearch - add exact (ext) field type and use it for linked biblios |
Description
Alex Arnaud
2020-10-05 08:53:05 UTC
Created attachment 111212 [details] [review] Bug 26608: Elasticsearch - add exact (ext) field type and use it for linked biblios Test plan: - Enable Elasticsearch engine, - Enable QueryAutoTruncate systempreference, - Show the detail od authority #1 (cgi-bin/koha/authorities/detail.pl?authid=1) - note the inconsistent count of linked biblio (and so the list), - Apply this patch, - Restart all, - repeat previous step, - Count and list of linked biblios should be ok. *** Bug 29724 has been marked as a duplicate of this bug. *** Just realized that the problem also occurs at linked_biblionumbers. https://github.com/Koha-Community/Koha/blob/master/Koha/Authorities.pm#L81 Basically, when simple_search_compat is used, instead of id "1" , its searched "1*". This returns all biblios with authorities that starts with the number 1. I've changed the status to "Needs Signoff" Patch no longer applies 8-(... Apply? [(y)es, (n)o, (i)nteractive] y Applying: Bug 26608: Elasticsearch - add exact (ext) field type and use it for linked biblios Using index info to reconstruct a base tree... M Koha/Authorities.pm M Koha/SearchEngine/Elasticsearch/QueryBuilder.pm M koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt Falling back to patching base and 3-way merge... Auto-merging koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt CONFLICT (content): Merge conflict in koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt Auto-merging Koha/SearchEngine/Elasticsearch/QueryBuilder.pm CONFLICT (content): Merge conflict in Koha/SearchEngine/Elasticsearch/QueryBuilder.pm Auto-merging Koha/Authorities.pm error: Failed to merge in the changes. Patch failed at 0001 Bug 26608: Elasticsearch - add exact (ext) field type and use it for linked biblios |