We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aa1e5f commit d1ba77eCopy full SHA for d1ba77e
src/django_elasticsearch_dsl_drf/elasticsearch_helpers.py
@@ -15,7 +15,7 @@ def get_all_indices(with_protected=False):
15
list: List of indices.
16
"""
17
es = Elasticsearch(**settings.ELASTICSEARCH_DSL["default"])
18
- _indices = es.indices.get_alias(index="*").items()
+ _indices = es.indices.get_alias("*").items()
19
if with_protected:
20
return [_i for _i, _o in _indices]
21
else:
@@ -35,7 +35,7 @@ def delete_all_indices(with_protected=False):
35
_fail = []
36
for _i in _indices:
37
try:
38
- _res = es.indices.delete(index=_i)
+ _res = es.indices.delete(_i)
39
except Exception as err:
40
_fail.append(_i)
41
if _res and isinstance(_res, dict) and _res.get("acknowledged", False):
0 commit comments