Index lifecycle management [Phase 1]: Adapt Rails indexing for ILM
As part of this issue we should change our rails indexing to add DELETE commands to _bulk, which mirror document updates.
For example:
POST _bulk
{ "index" : { "_index" : "gitlab-production-3", "_id" : "1" } }
{ "field1" : "value1" }
{ "delete" : { "_index" : "gitlab-production-2", "_id" : "1" } }
{ "delete" : { "_index" : "gitlab-production-1", "_id" : "1" } }
Edited by Dmitry Gruzd