From 3affdad4c2e478e9df0ce06306daacc27925f0ce 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 Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- 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: