Skip to content

Reindex confict: "proceed" throws error when casting malformed data to geo_point #17617

Closed
@g00fy-

Description

@g00fy-

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"
   }
}

Metadata

Metadata

Labels

:Distributed Indexing/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.>docsGeneral docs changeshelp wantedadoptme

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions