Alias and close - Bug?

Hi,

we noticed the following behavior, maybe someone could confirm if this a
bug (I would consider it a bug) or a feature:
I have two indices and add an alias to them. Searching on the alias works
fine. The moment I close one index it aint working anymore, exception is
{"error":"ClusterBlockException[blocked by: [FORBIDDEN/4/index
closed];]","status":403}
Shouldnt closed indices not be considered when retrieving concrete indices
matching an alias?

Thanks!
Andrej

--

Searching an alias is practically the same as specifying both indices on
URL during the search. So, if one of the indices is closed, Elasticsearch
cannot perform the search, so it generates the error. You will have to
remove the index from the alias manually before closing the index.

On Friday, December 7, 2012 11:26:30 AM UTC-5, Andrej Rosenheinrich wrote:

Hi,

we noticed the following behavior, maybe someone could confirm if this a
bug (I would consider it a bug) or a feature:
I have two indices and add an alias to them. Searching on the alias works
fine. The moment I close one index it aint working anymore, exception is
{"error":"ClusterBlockException[blocked by: [FORBIDDEN/4/index
closed];]","status":403}
Shouldnt closed indices not be considered when retrieving concrete indices
matching an alias?

Thanks!
Andrej

--