I getting this
while import with schema.json description from postgres via pgsync
I want to override the value from _type: _doc to something else. Can you help me?
I getting this
while import with schema.json description from postgres via pgsync
I want to override the value from _type: _doc to something else. Can you help me?
This is not possible,
_type
is a metadata field that was used until version 6.X to have different document types in the same index, this is not possible anymore.In version 6.X you could have indices with a custom value for
_type
, but just one per index, on version 7.X the value for the_type
field is_doc
, and on the upcoming version 8.X this field and its related API won't exist anymore.You can however create a new field named
type
and use any value you want, how you will do this depends on how you are ingesting your data.For more information about the removal of types in elasticsearch you can check this official blog post and this part of the documentation.