es
  1. index
es
  • analyze
    • 测试分词器
      GET
  • index
    • 创建索引及映射
      PUT
    • 查询索引
      GET
    • 删除索引
      DELETE
    • 修改索引
      PUT
  • doc
    • 创建文档
      POST
    • 查询文档
      GET
    • 删除文档
      DELETE
    • 增量修改
      POST
  • search
    • 查询全部
      GET
    • 单字段匹配
      GET
    • 多字段匹配
      GET
    • 精确匹配
      GET
    • 数值范围[匹配
      GET
    • 得分控制
      GET
    • 组合匹配
      GET
  • setting
    • aggs
      • 等值聚合
      • 平均值聚合
      • 和值聚合
      • 最小值聚合
      • 最大值聚合
    • 分页
      GET
    • 排序
      GET
    • 高亮
      GET
  1. index

查询索引

开发中
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"
                }
            }
        }
    }
}
上一页
创建索引及映射
下一页
删除索引
Built with