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

--- Comment #25 from Jason Robb <[email protected]> ---
In testing the searching with the JS from bug 42107 --
$(".search_score").toggle();
-- and adding some weights via the search field settings, things don't seem to
be multiplying as I would expect in a way that would prioritize one facet over
another.

For example, if I give:
- title a Search field weight of 32
- itype a Search field weight of 20
- itype = MU a Relevance boost of 2
- itype = BK a Relevance boost of 0.5

A search for "sugar" will return 3 results. The first two get a score of 64 for
a (title match 32 * boost 2). The third result does not have a title match but
does have sugar in the record so it only gets a score of 2 (from boost 2). So
the title weight is getting multiplied rather than the item type weight in
those scenarios.

If I add a book with "sugar" in the title to the mix, it gets a score of 16
(title weight 32 * boost 0.5) so it lands above the third music item.

Could (facet weight * facet boost) be added to the existing search field weight
instead? That would lead to results in order in this example of
- Sugar music 1: 32 +(20*2) = 72
- Sugar music 2: 32 +(20*2) = 72
- Sugar-adjacent music: (20*2) = 40
- Sugar book: (32*0.5) = 16

-- 
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