Skip to content

Commit 9665efe

Browse files
committed
fix(mappings): add swh field via index template
To make sure we always create the `swh` property in the records mappings, we can use an index template.
1 parent f9f7d67 commit 9665efe

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed
Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
{
22
"priority": 100,
3-
"index_patterns": ["__SEARCH_INDEX_PREFIX__rdmrecords-*"],
3+
"index_patterns": [
4+
"__SEARCH_INDEX_PREFIX__rdmrecords-*"
5+
],
46
"template": {
57
"settings": {
6-
"number_of_shards": 3
8+
"number_of_shards": 3
9+
},
10+
"mappings": {
11+
"properties": {
12+
"swh": {
13+
"type": "object",
14+
"properties": {
15+
"swhid": {
16+
"type": "keyword"
17+
}
18+
}
19+
}
20+
}
721
}
822
}
923
}

0 commit comments

Comments
 (0)