How can I change specific _mapping field type sent to ElasticSearch?
I've a collection of objects with a field called metadata, which is populated by users, so I don't know all the keys in that object. Monstache automatically updates the index mapping for me, but I want to set everything explicitly to string instead date because some of the data are malformed.
I'm thinking about mapping the doc with a custom script and then patching the fields, but I wanted to know if I can change mapping field types
How can I change specific _mapping field type sent to ElasticSearch?
I've a collection of objects with a field called
metadata
, which is populated by users, so I don't know all the keys in that object. Monstache automatically updates the index mapping for me, but I want to set everything explicitly tostring
insteaddate
because some of the data are malformed.I'm thinking about mapping the doc with a custom script and then patching the fields, but I wanted to know if I can change mapping field types