diff --git a/src/olympia/search/management/commands/reindex.py b/src/olympia/search/management/commands/reindex.py index 951bbffa1675..2a9a3ec49f82 100644 --- a/src/olympia/search/management/commands/reindex.py +++ b/src/olympia/search/management/commands/reindex.py @@ -216,7 +216,7 @@ def add_alias_action(action, index, alias): # If old_index is None that could mean it's a full index. # In that case we want to continue index in it. - if ES.indices.exists(index=alias): + if ES.indices.exists_alias(name=alias): old_index = alias # Main chain for this alias that: