[Koha-bugs] [Bug 23649] Elasticsearch offer an option to weight search results by type

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Feb 13 16:43:35 CET 2023


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

Björn Nylén <bjorn.nylen at ub.lu.se> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bjorn.nylen at ub.lu.se

--- Comment #4 from Björn Nylén <bjorn.nylen at ub.lu.se> ---
Created attachment 146585
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146585&action=edit
[Do not push] - Experimental support for function_score

We've been experimenting a bit with function_score query in our ES-searches as
we're having the same problems with not very relevant records showing high in
the results.

The patch allows us to assign different function_score-functions to
promote/demote records in the resultlist.

It's a bit of work in progress but if someone wants to try it out:
Apply patch
Create a Local use syspref, ElasticsearchFunctionScore , textarea
Fill in syspref with yaml representing av array of function scores as
understood by ES.
Eg(modify itype to local condidtions):
- filter:
    match:
      itype: "3"
  weight: 1.5

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list