Hi,
I'm getting started with ES and wrote a small test that indexes a few example documents.
Some of my documents have fields which have several types (e.g. long and text). Before I go ahead and change the documents themselves, I want to understand if I can index it as multi-fields (I don't have an explicit mapping so using the dynamic mapping).
My document for example looks like this:
{
"event-name": "metadata-property-updated",
"name": "name 1",
"type": "file",
"updated-attributes": {
"other": [
{
"attribute-name": "name",
"attribute-type": "string",
"new-value": "new name",
"old-value": "old name"
},
{
"attribute-name": "count",
"attribute-type": "integer",
"old-value": 3,
"new-value": 4
}
]
}
}
And I'm getting the error:
java.lang.IllegalArgumentException: mapper [updated-attributes.other.new-value] of different type, current_type [long], merged_type [text]