Enrich processor error: mapper_parsing_exception

I'm trying to enrich data to my index called "time_availability_alarmed_cells". The mapping for that index is:

{
  "mappings": {
    "_doc": {
      "properties": {
        "location": {
          "properties": {
            "cell": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "city": {
              "type": "keyword"
            },
            "cityPath": {
              "type": "keyword"
            },
            "country": {
              "type": "keyword"
            },
            "isoCode": {
              "type": "keyword"
            },
            "location": {
              "type": "geo_point"
            },
            "name": {
              "type": "keyword"
            },
            "region": {
              "type": "keyword"
            },
            "spareRegion": {
              "type": "keyword"
            },
            "type": {
              "type": "keyword"
            },
            "vendor": {
              "type": "keyword"
            }
          }
        }
      }
    }
  }
}

I create the following pipeline processor with an enrich policy:

[
    {
      "enrich": {
        "field": "cell",
        "policy_name": "extradata_location",
        "target_field": "location",
        "ignore_missing": true,
        "ignore_failure": true
      }
    }
]

And the enrich policy configuration:

{
  "match": {
    "indices": "time_availability_cells",
    "match_field": "cell",
    "enrich_fields": ["location.name"]
  }
}

The mapping for "location" field in "time_availability_cells" index is:

{
    "mappings": {
      "_doc": {
        "properties": {
          "location": {
            "properties": {
                "city": {
                "type": "keyword"
                },
                "cityPath": {
                "type": "keyword"
                },
                "country": {
                "type": "keyword"
                },
                "isoCode": {
                "type": "keyword"
                },
                "location": {
                "type": "geo_point"
                },
                "name": {
                "type": "keyword"
                },
                "region": {
                "type": "keyword"
                },
                "spareRegion": {
                "type": "keyword"
                },
                "type": {
                "type": "keyword"
                },
                "vendor": {
                "type": "keyword"
                }
            }
          }
        }
      }
    }
  }

When i index a new document to "time_availability_alarmed_cells" with the enrich processor, throws the following error:

ERROR: mapper_parsing_exception: failed to parse field [location.location] of type [geo_point]

Any suggestion to resolve this issue?
Thanks in advance

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