Skip to content

Elasticsearch 7 deprecated the doc type #1

Description

@AntonAttano

First of all, thanks for the script. It is exactly what I was looking for.

I had to change it a little bit to make it compatible with ES7 though, since Version 7 deprecated the doc type.

I changed the

.put(`${baseUrl}/${index}/${type}/${id}/_create`)

to

.put(`${baseUrl}/${index}/_doc/${id}/_create`)

and removed the const type = 'emails'; line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions