My current project requires to have a elasticsearch index that will be rolled over monthly.Index name will be like `Indexname-%{+YYYY.MM}`.

Now the problem is I am using Spring data elasticsearch to have the communication with elastic search and perform the crud operations.Currently For this in my domain class I have annotated as like below,

```
@Document(indexName = "indexname-2018.08", type = "Node")
public class Node {
......}

```

Currently i am giving the static index name.
My question is how can I use Alias of an index instead of direct index name,for eg something like below,

```
@Document(indexName = "indexname-current”, type = "Node")

```

where indexname-current is my alias name for all the index of type `Indexname-%{+YYYY.MM}`.

I am really stuck here. Any help will be highly appreciated.