Mapper_parsing_exception: object mapping tried to parse field as object, but found a concrete value

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"

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.