The first example can not be indexed into Elasticsearch as the b field occurs twice and contains both an object as well as a string, which creates a mapping conflict.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.