Reindexing takes 30 seconds and I don't want my search to be offline for 30 seconds every time I need to reindex. I'm trying to do this:
- Find old index with alias = abc123
- Create new index and fill with new data
- Remove alias and delete old index
- Give new index alias = abc123
I can't seem to find any java code that does 1). Everything else is fine. Anyone? or is there another way that is better?
Using Elasticsearch 0.90.9.