From d08f54c08f5c54d25436b5cf9fc0d256729f49f1 Mon Sep 17 00:00:00 2001 From: lucas Date: Fri, 10 May 2024 10:38:54 +0200 Subject: [PATCH] Prevent deprecation warning --- django_elasticsearch_dsl/management/commands/search_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_elasticsearch_dsl/management/commands/search_index.py b/django_elasticsearch_dsl/management/commands/search_index.py index 4137c370..8dd0dd28 100644 --- a/django_elasticsearch_dsl/management/commands/search_index.py +++ b/django_elasticsearch_dsl/management/commands/search_index.py @@ -298,7 +298,7 @@ def handle(self, *args, **options): # conflicts with indices, therefore this is needed regardless # of using the '--use-alias' arg. aliases = [] - for index in self.es_conn.indices.get_alias().values(): + for index in self.es_conn.indices.get_alias(index='*,-.*').values(): aliases += index['aliases'].keys() if action == 'create':