文档-全量查询
使用_search关键字
查看索引下所有数据,向 ES 服务器发 GET 请求 : http://localhost:9200/shopping/_search
GET http://localhost:9200/shopping/_search
1
返回信息
{
"took": 112,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 4,
"relation": "eq"
},
"max_score": 1.0,
"hits": [
{
"_index": "shopping",
"_type": "_doc",
"_id": "rUbGj34B0YKnOXrrX_cl",
"_score": 1.0,
"_source": {
"title": "小米手机",
"category": "小米",
"images": "http://xxx.jpg",
"price": 1999.00
}
},
{
"_index": "shopping",
"_type": "_doc",
"_id": "rkbuj34B0YKnOXrrX_ec",
"_score": 1.0,
"_source": {
"title": "小米手机",
"category": "小米",
"images": "http://xxx.jpg",
"price": 1999.00
}
},
{
"_index": "shopping",
"_type": "_doc",
"_id": "2",
"_score": 1.0,
"_source": {
"title": "小米手机",
"category": "小米",
"images": "http://xxx.jpg",
"price": 1999.00
}
},
{
"_index": "shopping",
"_type": "_doc",
"_id": "1",
"_score": 1.0,
"_source": {
"title": "小米手机",
"category": "小米",
"images": "http://xxx.jpg",
"price": 1999.00
}
}
]
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
Last Updated: 2022/02/05, 15:58:51