Closed
Description
When reindexing malformed object to geo_point
the conflict
parameter is ignorred and stops the task
example doc
{"geo":{"lat":null,"lon":null}}
with mapping:
{"properties":{"geo":{"properties":{"lat":{"type":long}, "lon":{"type":long}}}}
reindexing to
{"properties":{"geo":{"type":"geo_point", "ignore_malformed": true}}}
exception:
{
"took": 24483,
"timed_out": false,
"total": 5211,
"updated": 699,
"created": 2100,
"batches": 28,
"version_conflicts": 0,
"noops": 0,
"retries": 0,
"failures": [
{
"index": "search.locations",
"type": "location",
"id": "86d20ff9-ea24-448c-95a4-f060a30a80ad",
"cause": {
"type": "mapper_parsing_exception",
"reason": "failed to parse",
"caused_by": {
"type": "parse_exception",
"reason": "latitude must be a number"
}
},
"status": 400
}
]
}
Elasticsearch version:
docker:latest (2.3)
example query
POST /_reindex
{
"conflicts": "proceed",
"source": {
"index": "raw.locations"
},
"dest": {
"index": "search.locations"
}
}