查询文档
开发中
GET
/user/_doc/1
请求参数
无
示例代码
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/_doc/1'
返回响应
🟢200成功
application/json
Body
_index
string
必需
_type
string
必需
_id
string
必需
_version
integer
必需
_seq_no
integer
必需
_primary_term
integer
必需
found
boolean
必需
_source
object
必需
birthDay
string
必需
email
string
必需
gender
string
必需
height
number
必需
id
integer
必需
introduce
string
必需
is_health
boolean
必需
name
object
必需
score
number
必需
示例
{
"_index": "string",
"_type": "string",
"_id": "string",
"_version": 0,
"_seq_no": 0,
"_primary_term": 0,
"found": true,
"_source": {
"birthDay": "string",
"email": "string",
"gender": "string",
"height": 0,
"id": 0,
"introduce": "string",
"is_health": true,
"name": {
"firstName": "string",
"lastName": "string"
},
"score": 0
}
}