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':