You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data returned from Indices stats API contains _all field in the root level (the top most one). This is causing troubles when indexing such data to ES. Such as the following exceptions:
MapperParsingException[Field [_all] is a metadata field and cannot be added inside a document. Use the index API request parameters.]
or
MapperParsingException[Cannot generate dynamic mappings of type [_all] for [_all]]
The _all field cannot be created in index mapping because _all is metafield name. Historically, ES was creating the _all field for every indexed document automatically. There does not seem to be a way how to get output from the Indices stats API without the _all field in the root.
May be we could use copy_to to copy content from _all field to other field before indexing and set "index": "no" for _all field. However, this still keeps _all field in the game and I am not sure if this is supported.
Rename the field before it is sent to Elasticsearch for indexing.
The text was updated successfully, but these errors were encountered:
The data returned from Indices stats API contains
_all
field in the root level (the top most one). This is causing troubles when indexing such data to ES. Such as the following exceptions:or
The
_all
field cannot be created in index mapping because_all
is metafield name. Historically, ES was creating the_all
field for every indexed document automatically. There does not seem to be a way how to get output from the Indices stats API without the_all
field in the root.Moreover, starting with ES 6.x the
_all
field is no longer supported (including relatedinclude_in_all
mapping option).Other relevant resources:
Possible solutions:
May be we could use
copy_to
to copy content from_all
field to other field before indexing and set"index": "no"
for_all
field. However, this still keeps_all
field in the game and I am not sure if this is supported.Rename the field before it is sent to Elasticsearch for indexing.
The text was updated successfully, but these errors were encountered: