代码Demo
PUT logs_2019-06-27 PUT logs_2019-06-26 POST _aliases { "actions": [ { "add": { "index": "logs_2019-06-27", "alias": "logs_write" } }, { "remove": { "index": "logs_2019-06-26", "alias": "logs_write" } } ] } # POST /<logs-{now/d}/_search POST /%3Clogs-%7Bnow%2Fd%7D%3E/_search # POST /<logs-{now/w}/_search POST /%3Clogs-%7Bnow%2Fw%7D%3E/_search