Index Aliases: delete index by alias


(Marcin Dojwa) #1

Hi,

Is behaviour described below normal?
Lets:

  • create index test
  • create 2 filtered index aliases, t1 (with filter val=1) and t2 (with
    filter val=2)
  • delete index by alias t1 - this deletes whole index test instead of all
    the documents from test that matches filter val=1.

Is it a bug or it behaves like this and nothing can be done with that ? :slight_smile:

Best regards.
Marcin Dojwa


(Alex López) #2

Hi,

I think deletion of an index by its alias is expected behavior, if you want
to delete all documents in an index there should be another way of
achieving that (
http://www.elasticsearch.org/guide/reference/api/delete-by-query.html).

On Thursday, August 9, 2012 3:00:34 PM UTC+1, Marcin Dojwa wrote:

Hi,

Is behaviour described below normal?
Lets:

  • create index test
  • create 2 filtered index aliases, t1 (with filter val=1) and t2 (with
    filter val=2)
  • delete index by alias t1 - this deletes whole index test instead of all
    the documents from test that matches filter val=1.

Is it a bug or it behaves like this and nothing can be done with that ? :slight_smile:

Best regards.
Marcin Dojwa


(Marcin Dojwa) #3

Thank you for help.

Best regards.

2012/8/9 Alex López aliksandr@gmail.com

Hi,

I think deletion of an index by its alias is expected behavior, if you
want to delete all documents in an index there should be another way of
achieving that (
http://www.elasticsearch.org/guide/reference/api/delete-by-query.html).

On Thursday, August 9, 2012 3:00:34 PM UTC+1, Marcin Dojwa wrote:

Hi,

Is behaviour described below normal?
Lets:

  • create index test
  • create 2 filtered index aliases, t1 (with filter val=1) and t2 (with
    filter val=2)
  • delete index by alias t1 - this deletes whole index test instead of all
    the documents from test that matches filter val=1.

Is it a bug or it behaves like this and nothing can be done with that ? :slight_smile:

Best regards.
Marcin Dojwa


(system) #4