Skip to content

Delete index not working #13

@marcelloromani

Description

@marcelloromani

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions