Summary: | Linking biblio headings to authorities doesn't work with subdivisions | ||
---|---|---|---|
Product: | Koha | Reporter: | Alex Arnaud <alex.arnaud> |
Component: | Searching - Elasticsearch | Assignee: | Alex Arnaud <alex.arnaud> |
Status: | In Discussion --- | QA Contact: | |
Severity: | normal | ||
Priority: | P5 - low | CC: | fridolin.somers, janet.mcgowan, phil |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18017 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28628 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28203 |
||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: | Bug 29191: Don't include subdivision names in heading search form with Elasticsearch |
Description
Alex Arnaud
2021-10-07 14:09:33 UTC
Created attachment 126306 [details] [review] Bug 29191: Don't include subdivision names in heading search form with Elasticsearch Changed the component to Searching - Elasticsearch since it works with Zebra with the correct configuration: authority-koha-indexdefs.xml index the subdivision names in match-heading. I don't know how to make this configurable with Elasticsearch. So here is the quick fix that prevent adding subdivisions in search form for ES. Alex This is a bug not an enhancement right ? (In reply to Fridolin Somers from comment #3) > This is a bug not an enhancement right ? yes. Changed to normal. Thx! By 2021 you should have had the fix for bug 24269 and thus should have had the subdivision metadata indexed in ES, shouldn't you? (In reply to Phil Ringnalda from comment #5) > By 2021 you should have had the fix for bug 24269 and thus should have had > the subdivision metadata indexed in ES, shouldn't you? it looks like the mappings weren't updated for UNIMARC. But maybe this would be the preferrable fix here? Mmm, mappings. The point of bug 24269 and bug 25273 was that you cannot do any better than Koha by mapping match-heading, because match-heading is only searched by the linker, and the linker will search for the search_form of the heading, so any mapping other than exactly that can only fail or return worse results. If you don't have any mapping at all for match-heading, then that's perfect, because Koha will build one by calling $heading->search_form and stuffing that into the index. However, I know from having a service-provider-provided mapping file that had outdated mappings for match-heading that if you do have them, they will still be used, and will break things. That's probably where Alex was in 2021, with code that would have indexed headings as "Art generalsubdiv History" but with a match-heading mapping that prevented it from successfully doing so. |