You can't. If test2 is a string for the first doc, it can not be an object for the second doc.
What are you trying to do? -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 17 septembre 2014 à 14:46:24, Maria John Franklin (mariajohnfrank...@mycura.com) a écrit: Hi Friends, How to push dynamic data types in same column in elasticsearch. Example json ========== data 1 ====== { "test1":"test", "test2":"test" } data 2 ====== { "test1":"test", "test2":{ "test3":"test"} } Thanks, Franklin -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/33f1fd5f-9a5f-41af-b378-9e348445aa31%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.541982f4.1381823a.3c6%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/d/optout.