June 2017
Beginner to intermediate
404 pages
8h 22m
English
These kinds of errors happen due to JSON serialization issues or if you are trying to index an integer into a string field. For example, you are trying to index a person document, and the mapping for the age field is set to an integer. If you try to index one as the age field as shown next, you will see a mapping error:
PUT chapter4/person/3 { "id": 3, "name": "user3", "age": "one", "gender": "M", "email": "user3@gmail.com", "last_modified_date": "2017-02-18" }
The response to the preceding request is shown next:
{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "failed to parse [age]" } ], "type": "mapper_parsing_exception", "reason": "failed to parse [age]", "caused_by": { "type": ...Read now
Unlock full access