From 12cd150cd69f1be6fb38a753f735853b8c857e77 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Tue, 18 Apr 2023 21:42:24 +0200 Subject: [PATCH] Bug 33099: Add missing MARC21 Match authority mappings so "Search all headings" search works The main entry form of corporate names (110), uniform titles (130), topical terms (150), geographical names (151), and genre/form (155) are not indexed with 'Match' search field in Elasticsearch standard mapping. As a result, the respective records are not present on the result list when performing an 'All headings' search for the authority records with the main heading form (MARC 21). Test plan ========= 0. Have a test installation with Elasticsearch. 1. In Authorities, make an 'All headings' search for a main entry form from the corporate names, uniform titles, topical terms, geographical names, or genre/form --> e.g., in ktd: UK Archiving. You will get no results. 2. Apply the patch, reindex with: sudo koha-elasticsearch --rebuild -r -a kohadev 3. Repeat the test. You should see 'UK Archiving' on the result list. Signed-off-by: Roman Dolny --- .../searchengine/elasticsearch/mappings.yaml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 9cd3db5c96..67395a91b1 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -297,11 +297,36 @@ authorities: marc_type: marc21 sort: 1 suggestible: '' + - facet: '' + marc_field: 110(abcdefghklmnoprstvxyz) + marc_type: marc21 + sort: 1 + suggestible: '' - facet: '' marc_field: 111(acdefghjklnpqstvxyz) marc_type: marc21 sort: 1 suggestible: '' + - facet: '' + marc_field: 130(adfghklmnoprstvxyz) + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: 150(abgvxyz) + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: 151(agvxyz) + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: 155(avxyz) + marc_type: marc21 + sort: 1 + suggestible: '' - facet: '' marc_field: 400(abcdefghjklmnopqrstvxyz) marc_type: marc21 -- 2.39.2