From fd8d142fa7d8bab472aec69662197a55282e5ff3 Mon Sep 17 00:00:00 2001 From: Eric Hanson Date: Mon, 11 Mar 2024 14:37:29 -0400 Subject: [PATCH] GDT-211-publishers-mapping Why these changes are being introduced: * Implement ADR # 3 for timdex-index-manager after transmogrifier has been updated How this addresses that need: * Add publishers field to opensearch_mappings.json * Remove publication_information field Side effects of this change: * Reindexing required for new field mapping Relevant ticket(s): * https://mitlibraries.atlassian.net/browse/GDT-211 --- config/opensearch_mappings.json | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/config/opensearch_mappings.json b/config/opensearch_mappings.json index 1b22708..d31c640 100644 --- a/config/opensearch_mappings.json +++ b/config/opensearch_mappings.json @@ -315,8 +315,28 @@ } } }, - "publication_information": { - "type": "text" + "publishers": { + "type": "nested", + "include_in_parent": "true", + "properties": { + "name": { + "type": "text", + "fields": { + "keyword": { + "type": "keyword", + "normalizer": "lowercase" + } + } + }, + "date": { + "type": "keyword", + "normalizer": "lowercase" + }, + "location": { + "type": "keyword", + "normalizer": "lowercase" + } + } }, "related_items": { "type": "nested",