Disallow dynamic mapping

Added config mapping

Original commit: elastic/x-pack-elasticsearch@f3de2c17bd
This commit is contained in:
Martijn van Groningen 2014-12-05 17:03:26 +01:00
parent c97e083a59
commit 45e5c13369
2 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,8 @@
"settings": { "settings": {
"index.number_of_shards": 1, "index.number_of_shards": 1,
"index.number_of_replicas": 1, "index.number_of_replicas": 1,
"index.alerts.template_version": 1 "index.alerts.template_version": 1,
"index.mapper.dynamic" : false
}, },
"mappings": { "mappings": {
"alerthistory": { "alerthistory": {

View File

@ -4,7 +4,8 @@
"settings": { "settings": {
"index.number_of_shards": 1, "index.number_of_shards": 1,
"index.number_of_replicas": 1, "index.number_of_replicas": 1,
"index.alerts.template_version": 1 "index.alerts.template_version": 1,
"index.mapper.dynamic" : false
}, },
"mappings": { "mappings": {
"alert": { "alert": {
@ -26,7 +27,7 @@
"type": "string" "type": "string"
}, },
"ack_state" : { "ack_state" : {
"type": "string" "type": "string"
}, },
"trigger": { "trigger": {
"type": "object", "type": "object",
@ -53,6 +54,10 @@
"dynamic": true "dynamic": true
} }
} }
},
"config": {
"enabled" : false,
"properties" : {}
} }
} }
} }