Skip to content

Commit

Permalink
Check alias instead of index
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed Nov 4, 2024
1 parent 9b1d465 commit c94776b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/olympia/search/management/commands/reindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c94776b

Please sign in to comment.