Could you suggest how to handle different value types mapped to a filed i.e. object and text?
I have an index that has a mapping as listed below. The same is started failing to accept the text value. I don't have control over upstream data. I have tried using the dynamic flag that didn't help.
"Id": {
"dynamic": "true",
"properties": {
"$exists": {
"type": "boolean"
}
}
Data format:
version 1: "Id": {"$exists": true}
version 2: "Id": "user12345"