2017-03-03 330 views

回答

7

看一看在cat API:您可以通過http://localhost:9200/_cat/indices?help

獲取可用參數的列表,讓您的索引的創建日期,你會使用creation.date(或creation.date.string)。例如,使用

http://localhost:9200/_cat/indices?h=h,s,i,id,p,r,dc,dd,ss,creation.date.string 
+0

非常感謝!這樣可行。 – dapangmao

+0

如何按創建日期對索引進行排序? –

+1

@VedranMaricevic對於ES5,追加'&s = creation.date',類似於'http:// localhost:9200/_cat/indices?h = h,s,i,id,p,r,dc,dd,ss, creation.date.string&s = creation.date' – nikoshr