Elastic rest high level api RolloverRequest


(Zenifer Cheruveettil) #1

I am trying to use RolloverRequest to automatically rollover a time based index.

My index format is log-000001, log-000002 etc. and alias is log

If i'm using REST API, then I do not have to supply the new index name as rollover happens automatically. But I do not see a way of getting the same behaviour using high level rest api

RolloverRequest request = new RolloverRequest(aliasName, newIndexname);

Even though documentation says that newIndexName is optional, there is no constructor which takes only one param, there is no default constructor either.

My question is, is there a way to pass just alias name to RolloverRequest for automatic rollover? If not, is there something like that planned or is the documentation misleading?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.