From cdef18fe2028dad0e68f97b85e0cafc5f8f94bdd Mon Sep 17 00:00:00 2001
From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Date: Tue, 18 May 2021 16:40:50 -0400
Subject: [PATCH] Bug 28380: Elasticsearch - correct 024aa in mappings (MARC21)

This patch corrects a typo in the mappings.yaml file

To test:
1) Apply patch
2) Reindex using rebuild_elasticsearch.pl -r

If you don't have access to a terminal (in a sandbox for example)
2a) Go to Administration > Search engine configuration, click "Reset mappings"
and confirm
2b) Then reindex

3) Search for a standard number found in 024$a using the Standard number index
in the advanced search

Signed-off-by: David Nind <david@davidnind.com>
---
 admin/searchengine/elasticsearch/mappings.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml
index 292e9ac475..2cfbd8d8e9 100644
--- a/admin/searchengine/elasticsearch/mappings.yaml
+++ b/admin/searchengine/elasticsearch/mappings.yaml
@@ -2029,7 +2029,7 @@ biblios:
     label: identifier-other
     mappings:
       - facet: ''
-        marc_field: 024aa
+        marc_field: 024a
         marc_type: marc21
         sort: ~
         suggestible: ''
-- 
2.20.1