如何在Elasticsearch中过滤或查询索引名称列表?

Nit*_*and 6 wildcard elasticsearch

我使用以下内容列出索引

curl localhost:9200/_cat/indices?v 
Run Code Online (Sandbox Code Playgroud)

是否有任何方法可以过滤或查询索引名称,例如使用通配符?

curl localhost:9200/_cat/indices - d '{
  "query": {
    "prefix": {
      "index": "sam-"
    }
  }
}'
Run Code Online (Sandbox Code Playgroud)

elasticsearch.js中的格式是什么?

And*_*fan 17

简单: curl localhost:9200/_cat/indices/sam-*?v