ES-Elasticsearch查看所有索引及查看某索引下的信息

1.查看所有索引,地址栏直接访问下面的连接
http://localhost:9200/_cat/indicesv&pretty
2.查看某索引下存的信息,查询的信息为索引结构信息(indexName为索引名称)
GET方法:http://127.0.0.1:9200/indexNamepretty
3.查看某个索引下的所有文档数据
GET方法:http://localhost:9200/indexName/_search(需带下面的请求体,查多个索引的话可以把地址中的indexName改为indexName,indexName)

{//请求体
    "query":{
        "match_all":{

        }
    }
}

3.删除指定索引方法
用postman的delete方法调用
http://localhost:9200/indexName
indexName为索引名称
返回结果为
{
“acknowledged”: true
}
即删除成功

猜你喜欢

转载自blog.csdn.net/m0_54864585/article/details/126363615