Store json field as string and still being indexed

Hi,

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?

Thanks,
Jared

--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/13e8a350-9403-498a-8c40-34be7aa087e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.