CirrusSearch: updateSearchIndex.php should remove any index with the same name as the alias that it wants when passed --rebuild. Because we deploy CirrusSearch for the first time to wikis without turning off search updates we sometimes see Elasticsearch autocreate a search index at the alias location. This change will allow us to build the search index in the right location and grab the alias. Since we'll be building the index from scratch anyway we don't need the updates that created the alias-named index in the first place.
Version: unspecified
Severity: normal