Bug 18316 add the ability to configure relevancy on staff simple search. This BZ does the same for OPAC.
Created attachment 74437 [details] [review] Bug 20602 - use weighted fields in OPAC simple search Test plan (having Koha working with Elasticsearch): - apply this patch, - try searches with and without weight defined on search fields https://bugs.koha-community.org/show_bug.cgi?id=20262
Not sure I can test it as 18316 is 'Failed'.
Created attachment 74729 [details] [review] Bug 20602 - use weighted fields in OPAC simple search Test plan (having Koha working with Elasticsearch): - apply this patch, - try searches with and without weight defined on search fields https://bugs.koha-community.org/show_bug.cgi?id=20262
Created attachment 74755 [details] [review] Bug 20602 - use weighted fields in OPAC simple search Test plan (having Koha working with Elasticsearch): - apply this patch, - try searches with and without weight defined on search fields https://bugs.koha-community.org/show_bug.cgi?id=20262 Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Result order is now exactly the same as in the staff client. This make the results so relevant ! Thanks Alex :)
Waiting for parent bug.
Created attachment 81518 [details] [review] Bug 20602: Use weighted fields in OPAC simple search Test plan (having Koha working with Elasticsearch): - apply this patch, - try searches with and without weight defined on search fields https://bugs.koha-community.org/show_bug.cgi?id=20262 Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Trivial patch when applied atop bug 18316. No regressions found. Passing QA
I was going to say that this makes Zebra and ElasticSearch behaviours deviate, but after a glance... I think they already deviate a lot? Field weighting for Zebra is done really badly, so I wouldn't want it added to the Zebra simple search anyway...
I think it can't be avoided, we are not trying to rebuild Zebra as is, but something that will hopefully work better :)
(In reply to Katrin Fischer from comment #10) > I think it can't be avoided, we are not trying to rebuild Zebra as is, but > something that will hopefully work better :) We can hope!
Awesome work all! Pushed to master for 18.11
Enhancement, will not be backported to 18.05.x series.