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

Delete index not working #13

Open
marcelloromani opened this issue Jul 28, 2018 · 1 comment
Open

Delete index not working #13

marcelloromani opened this issue Jul 28, 2018 · 1 comment

Comments

@marcelloromani
Copy link

marcelloromani commented Jul 28, 2018

How to reproduce:

  • Specify the --force_delete_index=True option
  • Expected result: the index is deleted
  • Actual result: a 400 Bad Request error is returned by Elasticsearch, the index is not deleted

Fix:

  • Remove ?refresh=true from the url variable in function delete_index
-        url = "%s/%s?refresh=true" % (tornado.options.options.es_url, idx_name)
+        url = "%s/%s" % (tornado.options.options.es_url, idx_name)
@oliver006
Copy link
Owner

Thanks for submitting this issue!
I'll try to get to this at some point but I haven't used this project in quite a while so I'm a little rusty and it might take me a while.

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

No branches or pull requests

2 participants