我正在使用 jest api 连接到弹性搜索我想知道在 Jest 中是否有一种方法可以将别名添加到具有现有索引名称的索引并在同一操作中删除索引。像这样,但通过 Jest api:
POST /_aliases
{
"actions" : [
{ "add": { "index": "new_index", "alias": "index_1" } },
{ "remove_index": { "index": "index_1" } }
]
}