I have a need to add more dynamic templates in my existing index mappings,
how can I do that
Tried doing below, but it didn't worked
PUT {$indexname}_mappings
{
"mappings" : {
"dynamic_templates" : [
{
"strings" : {
"match" : "*_ss",
"match_mapping_type" : "string",
"mapping" : {
"fields" : {
"text" : {
"store" : true,
"type" : "text"
}
},
"type" : "keyword"
}
}
}
]
}
}
What didn't work exactly?
Hey Mark,
Actually I want to add more dynamic templates in the existing schema definition of an index.
Ok, but that doesn't describe what is not working.
I didn't said it is not working,
I want to know how can I add more dynamic templates in the existing schema definition of an index.
Yeah, you did, which is why I asked
So if you tried to apply this and it's not doing what you want, what is it doing? What response are you getting from Elasticsearch? What do you see in the mapping?
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.