boxmoe_header_banner_img

(●'◡'●)

加载中

cloud computing

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

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

1.查看所有索引,地址栏直接访问下面的连接
http://localhost:9200/_cat/indices?v&pretty

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

{//请求体
“query”:{
“match_all”:{

}
}
}

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



评论(0)

查看评论列表

暂无评论


发表评论

表情 颜文字
插入代码