Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch 7 deprecated the doc type #1

Open
stephan13360 opened this issue Feb 19, 2020 · 0 comments
Open

Elasticsearch 7 deprecated the doc type #1

stephan13360 opened this issue Feb 19, 2020 · 0 comments

Comments

@stephan13360
Copy link

stephan13360 commented Feb 19, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant