Store json field as string and still being indexed


For complex json document, is it possible to define a custom mapping to
just store a json field (contains inner level json fields) as just strings
and still being searchable?

for example:

"data1" : {
"data2" : {
"int_data1": "sdfsfs",
"int_data2": "sdfassdfa"
"data3" : "etstasd"

Have ES store "data2" as string and indexed. Is that possible?


You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit