I have a time-series index. I create a new version once a day using the format index-name-YYYY-mm-dd.
When creating the index, I assign it a constant alias of 'index-name'. This way, clients can just refer to the 'index-name', and not have to append the timestamp. I create the alias when I create the index so it's an atomic operation; however I create a new index every day and am assigning it the same alias. This is blowing up as you can't have the same alias point to multiple indexes. I'm trying to fix this but can't find an atomic way to: 1) create the new index 2) remove the alias from the old index 3) add the alias to the new index I can do 1/3 atomically using the index API or 2/3 atomically using the alias API, but I can't find a way to do all three. Any ideas? -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6322f948-6574-45ce-b859-773dbae1f1da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
