[Koha-bugs] [Bug 25273] Elasticsearch Authority matching is returning too many results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 28 14:28:40 CEST 2020


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

--- Comment #2 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 103854
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=103854&action=edit
Bug 25273: Make match-heading rely on authority type configuration

The match-heading field is a special field used only by the linker, not
accessible
to staff or patrons via the interface. This field is used to store the
constructed
'search form' used for matching bib headings to authority fields.

In bug 24269 I attempted to use the mappings defined in the inferface and also
inject the search term.
This did not work as too many subfields were indexed on their own and leading
to false matches.
In this bug we remove the mappings for this field, and create it ourselves
during
the indexing process. The C4::Headings module is still used to generate the
correct form,
however, the mappings are set based on the authority types in the system. This
gives the user
the ability to add new typoes, but prevents mapping changes from breaking
linker functionality

To test:
 1 - Start form a sample database
 2 - Download via Z39.50 2 authorities, one of which is a narrower heading of
the other, e.g.:
    Waterworks
    Waterworks - Costs
 3 - Place a heading for the broader term in a record
 4 - Make sure linker is set to default
 5 - Attempt to link the records
 6 - Linking fails
 7 - Apply patch
 8 - Refresh index settings (if using a custom file, remove 'match-heading')
 9 - Reindex ES
10 - Try to link again
11 - It succeeds!

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