查询索引
开发中
GET
/user
请求参数
无
示例代码
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'
返回响应
🟢200成功
application/json
Body
user
object
必需
aliases
object
必需
mappings
object
必需
settings
object
必需
示例
{
"user": {
"aliases": {},
"mappings": {
"properties": {
"birthDay": {
"type": "string"
},
"email": {
"type": "string",
"index": true
},
"gender": {
"type": "string",
"index": true
},
"id": {
"type": "string"
},
"introduce": {
"type": "string",
"analyzer": "string"
},
"name": {
"properties": {
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
}
}
},
"score": {
"type": "string",
"index": true
}
}
},
"settings": {
"index": {
"routing": {
"allocation": {
"include": {
"_tier_preference": "string"
}
}
},
"number_of_shards": "string",
"provided_name": "string",
"creation_date": "string",
"number_of_replicas": "string",
"uuid": "string",
"version": {
"created": "string"
}
}
}
}
}