The situation I have is that if the first type of document gets processed first, the field 'fields.args.2' gets set to text and then the next document doesn't get indexed. Is there a away to handle this or am I missing something?
Each field in an index must have the same mapping across all documents, so having a field be mapped as a string as well as an object is not allowed. If you want these documents in the same index, I believe you will need to alter the structure of the data, e.g. by renaming field based on the type it holds.
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.