CreateIndexRequest with date math


I am using RestHighLevelClient 7.13.

I am trying to create an index with date math:

CreateIndexRequest cir = new CreateIndexRequest("<books-{now/d}-0001>");

It create an index with the name books, without the date.

What is missing?

This may be related to special character escaping.

Can you try with CreateIndexRequest("%3Cbooks-%7Bnow%2Fd%7D%3E-0001") ?

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