mapper_parsing_exception: mapper_parsing_exception: failed to parse field [...] of type [...]
ElasticsearchWhat does it mean?
While indexing a document, the value sent for a field did not match the type defined for that field in the mapping and could not be parsed. For example, text sent to a field defined as integer, or an invalid date format sent to a field defined as date.
Why does it happen?
Field type mismatch (a string for a numeric field, a malformed format for a date field), a date that does not match the expected date format, malformed/incomplete JSON, dynamically mistyped fields, or a scalar value sent where an object is expected.
How to fix it
Check the field name and expected type in the error message: GET /index-name/_mapping. Make the value in the document match the field type, or redefine the mapping with the correct type. For date fields, match the format parameter to the document format. The type of an existing field cannot be changed; if needed, create a new index and move the data with _reindex. Validate data in the application layer.
More from this engine
- index_read_only_allow_deleteTOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block (legacy: FORBIDDEN/12/index read-only / allow delete (api))
- high_disk_watermark_exceededhigh disk watermark [90%] exceeded / flood stage disk watermark [95%] exceeded
- circuit_breaking_exceptionCircuitBreakingException[[parent] Data too large, data for [<...>] would be [...], which is larger than the limit of [...]]
- strict_dynamic_mapping_exceptionstrict_dynamic_mapping_exception: mapping set to strict, dynamic introduction of [...] within [...] is not allowed
- illegal_argument_exception_fielddataillegal_argument_exception: Fielddata is disabled on text fields by default. Set fielddata=true on [your_field] in order to load fielddata in memory
- search_phase_execution_exceptionsearch_phase_execution_exception: all shards failed / Failed to execute phase [query]
- too_many_clausestoo_many_clauses: maxClauseCount is set to 1024 (query contains too many clauses)