Hi,
I am using ES-7.x, facing issue while indexing document, the data structure is like below
{
"field1": [
"string"
"object"
"array"
]
}
I am using field type "nested" at the time of index creation
Note: If I add the first document like the array of an object and second document is an array of a string, then unable to add the second document.
Also, I have tried with the field type "text" still getting the same error
Please suggest me, how can I add all type of documents in a single field
Unfortunately this is not really supported and will yield all sort of issues. All collections in a document must be of the same type for the entries within it. For instance:
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.