Remove dynamic objects from security index ()

The security index had a few "object" types with

   "dynamic": true

However, this automatically creates a mapping for each field that is
created within those objects. This means that types are dynamically
inferred and "locked in" for future updates.

Instead we want "dynamic": false which will allow us to store a range
of fields in these nested objects and retrieve them from the source,
without creating mapping types for those fields.

Backport of: 
This commit is contained in:
Tim Vernum 2019-04-05 18:28:09 +11:00 committed by GitHub
parent 809a5f13a4
commit 920024e06d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -69,7 +69,7 @@
},
"metadata" : {
"type" : "object",
"dynamic" : true
"dynamic" : false
},
"enabled": {
"type": "boolean"
@ -189,7 +189,7 @@
},
"metadata" : {
"type" : "object",
"dynamic" : true
"dynamic" : false
},
"realm" : {
"type" : "keyword"
@ -198,7 +198,7 @@
},
"rules" : {
"type" : "object",
"dynamic" : true
"dynamic" : false
},
"refresh_token" : {
"type" : "object",
@ -253,7 +253,7 @@
},
"metadata" : {
"type" : "object",
"dynamic" : true
"dynamic" : false
},
"authentication" : {
"type" : "binary"