获取elasticSearch中当前热点索引列表

Get list of current hot indexes in elasticSearch

  1. 有没有办法在elasticsearch中获取热点索引列表(可供写入)?
  2. 如果是,是否有办法让该列表仅与特定别名相关联?

编辑:

如果我们能在这一点上改进那就更好了: 更好的解决方案,无需遍历所有索引来查找热门索引。但只能直接获取热门索引。

您可以 运行 GET _cat/aliases/alias-name?format=json 并仅保留带有 is_write_index: true 的条目。这将为您提供与特定别名关联且当前正在写入的索引列表。