Version 2.11.0
I’m trying to set an index_template on our OpenSearch cluster with a set of defined fields that I want indexed but I want any fields that don’t fall into those defined to still be stored in the document, just not indexed.
Here is a sample of the index template that I put in
PUT /_index_template/standardtemplate
{
"index_patterns":[
"mypattern*"
],
"priority": 100,
"template": {
"settings":{
"index":{
"mapping":{
"total_fields":{
"limit":"2000"
}
}
}
},
"mappings":{
"dynamic": false,
"properties":{
....
}
}
}
It was my understanding that setting the “mappings.dynamic” property to false would achieve this but I’ve noticed that it’s not working. Any suggestions?
Thank you!