https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23649

--- Comment #45 from Jason Robb <[email protected]> ---
Created attachment 208760
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208760&action=edit
Bug 23649: (QA follow-up) Sum overlapping relevance boosts instead of taking
the max

score_mode was 'max': a record matching multiple boosts only counted
the single highest weight. Now 'sum', so matching weights add up.

Test plan (Jason's repro from comment 28, retested against the fix):
1.) Add $(".search_score").toggle(); to IntranetUserJS to see the search score
2.) Search for john > results all score 1
3.) Add a boost of itype > BK > 200
4.) Search for john > records with BK in the 942$c get a score of 200 (some of
the results look wrong because of the item-level itypes but the record-level
types are boosted correctly)
5.) Add an additional boost of location > GEN > 200
6.) Search for john. Confirm records with both itype BK and location GEN now
score 400, ranking above records matching only one of the two boosts (score
200).

prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Signed-off-by: Jason Robb <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to