Skip to content

Commit fd8d142

Browse files
committed
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
1 parent c41c633 commit fd8d142

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

config/opensearch_mappings.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,28 @@
315315
}
316316
}
317317
},
318-
"publication_information": {
319-
"type": "text"
318+
"publishers": {
319+
"type": "nested",
320+
"include_in_parent": "true",
321+
"properties": {
322+
"name": {
323+
"type": "text",
324+
"fields": {
325+
"keyword": {
326+
"type": "keyword",
327+
"normalizer": "lowercase"
328+
}
329+
}
330+
},
331+
"date": {
332+
"type": "keyword",
333+
"normalizer": "lowercase"
334+
},
335+
"location": {
336+
"type": "keyword",
337+
"normalizer": "lowercase"
338+
}
339+
}
320340
},
321341
"related_items": {
322342
"type": "nested",

0 commit comments

Comments
 (0)