查询全部
开发中
GET
/user/_search
请求参数
Body 参数application/json
object {0}
示例
{
"query":{
"match_all":{}
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://hx:9200/user/_search' \
--header 'Content-Type: application/json' \
--data-raw '{
"query":{
"match_all":{}
}
}'
返回响应
🟢200成功
application/json
Body
took
integer
必需
timed_out
boolean
必需
_shards
object
必需
total
integer
必需
successful
integer
必需
skipped
integer
必需
failed
integer
必需
hits
object
必需
total
object
必需
max_score
integer
必需
hits
array [object {5}]
必需
示例
{
"took": 0,
"timed_out": true,
"_shards": {
"total": 0,
"successful": 0,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 0,
"relation": "string"
},
"max_score": 0,
"hits": [
{
"_index": "string",
"_type": "string",
"_id": "string",
"_score": 0,
"_source": {
"birthDay": "string",
"email": "string",
"gender": "string",
"height": 0,
"id": 0,
"introduce": "string",
"is_health": true,
"name": {
"firstName": "string",
"lastName": "string"
},
"score": 0
}
}
]
}
}