Skip to content

Commit bd5bbd8

Browse files
committed
update docs
1 parent 5a85d01 commit bd5bbd8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

docs/nosql/elasticsearch/elasticsearch-api.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,32 @@ curl -X DELETE 'localhost:9200/user'
6969
可以通过 GET 请求查看索引信息
7070

7171
```bash
72+
# 查看索引相关信息
7273
curl -X GET 'localhost:9200/user'
74+
75+
#查看索引的文档总数
76+
CURL -X 'localhost:9200/user/_count'
77+
78+
#查看前10条文档,了解文档格式
79+
POST user/_search
80+
{
81+
}
82+
83+
#_cat indices API
84+
#查看indices
85+
CURL -X /_cat/indices/kibana*?v&s=index
86+
87+
#查看状态为绿的索引
88+
CURL -X /_cat/indices?v&health=green
89+
90+
#按照文档个数排序
91+
CURL -X /_cat/indices?v&s=docs.count:desc
92+
93+
#查看具体的字段
94+
CURL -X /_cat/indices/kibana*?pri&v&h=health,index,pri,rep,docs.count,mt
95+
96+
#How much memory is used per index?
97+
CURL -X /_cat/indices?v&h=i,tm&s=tm:desc
7398
```
7499

75100
#### 打开/关闭索引

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy