From bf03b198ecb8b4baf6d818e0378b1892fdb733d2 Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Thu, 8 Sep 2022 11:54:19 -0400 Subject: [PATCH] Bug 31537: Elasticsearch - index mapping for 003 control-number-identifier is twice in mappings.yaml This patch removes one of the two mappings for the 003 field to the control-number-identifier index (for MARC21). To test: 1) Apply patch 2) reindex with mappings reset 3) try to search for cni:code (for example cni:OSt) --> it should return the desired results 4) try to search for control-number-identifier:code (for example control-number-identifier:OSt) --> it should return the desired results 5) Optionally, try the test plan in Bug 11175 to make sure it still works Signed-off-by: David Nind --- admin/searchengine/elasticsearch/mappings.yaml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 3eac85f09d..b5602f1a48 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2723,15 +2723,6 @@ biblios: sort: ~ suggestible: '' type: '' - control-number-identifier: - label: control-number-identifier - mappings: - - facet: '' - marc_field: 003 - marc_type: marc21 - sort: ~ - suggestible: '' - type: '' record-source: label: record-source mappings: -- 2.30.2