Home > Net >  How to query on latest version of elastic search index?
How to query on latest version of elastic search index?

Time:10-03

I have a use case where I have to query on the latest es index from java . Es indexes are of the pattern indexName-date . Is there a way I can do that ??

CodePudding user response:

not directly to Elasticsearch, no, as there's nothing native to do that

you'd need to grab the list of indices and then sort by date and get the latest yourself

  • Related