Can someone guide me how to extract top five records from elasticsearch,I've used size query as well, but it returns all the documents.
Goal is to get data in json format after sorting on basis of store size which is one of keys in that json and extract only five such jsons.
Below is my search query: [ip-address]/_cat/indices?format=json&s=store.size:desc
I'm newbie in this, many apologies if this seems to be a silly question.
Also, if someone provide me hints then it is too, okay!
Thanks a bunch, in advance!!