https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39790 --- Comment #1 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 181717 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=181717&action=edit Bug 39790: Use constant score queries for matching To reduce some overhead in calculating relevancy here, we can use a constant_score query to simplify the search passed to elastic. This patch adds a new build_biblio_match_query routine in Zebra and ES. For ES we update to use the new queries. Zebra is simply a pass through to the previous code. To test: 1 - Export osme records from Koha 2 - Setup a matching rule on title, author, and isbn, score fo 200 each 3 - Stage the file and match, confirm all match 4 - Apply patch, restart all 5 - Change the matching to 'none' and 'Apply different matching rules' 6 - Change matching back to your rule and apply again 7 - Should have the same matches as before 8 - Change your search engine and unmatch/match again 9 - Should have same matches 10 - Test with other matching rules as desired 11 - Sign off! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.