Here is a simplified version of my mapping:
{
"mappings": {
"user-event": {
"_all": {
"enabled": true
},
"properties": {
"account_id": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string"
},
"payload": {
"type": "string",
"index": "not_analyzed"
},
}
},
}
}
Currently payload
is a string, and this will be a stringified JSON payload, for instance: "{\"foo\": \"bar\"}"
Is it possible to change the payload type to JSON
so that ES automatically parses the string and so I can do query on payload
?
If not, do I have to write raw JSON into ES to be able to query it?