zoukankan      html  css  js  c++  java
  • Elasticsearch6.0之二:常用语句

    // 查看集群状态
    GET /_cluster/health?pretty
     
    //  查看所有索引配置信息
    Get _all/_settings
    // 查看所有索引状态
    GET /_cat/indices?v
     
    // 查看指定索引状态
    GET /_cluster/health/bill?pretty
     
    // 查看索引信息
    GET /bill
     
    // 查看结节状态信息
    GET _nodes/stats 
     
    // 查看所有索引分片信息
    GET /_cat/shards?v
     
    // 查看指定索引分片信息
    GET /_cat/shards/bill?v
     
    // 查看mapping
    GET /bill/ebill/_mapping?pretty
     
    // 新建索引
    PUT /weather
     
    // 删除索引
    DELETE /weather
     
     
    // 创建索引映射
    PUT /accounts
    {
      "mappings": {
        "person": {
          "properties": {
            "user": {
              "type": "text"
            },
            "title": {
              "type": "text"
            },
            "desc": {
              "type": "text"
            }
          }
        }
      }
    }
     
     
    // 插入记录(文档,可以不指定ID 1) 更新也这条
    PUT /accounts/person/1
    {
      "user": "张三",
      "title": "工程师",
      "desc": "数据库管理"
    }
     
     
    // 查看文档
    GET /accounts/person/1?pretty=true
     
     
    // 删除文档
    DELETE /accounts/person/1
  • 相关阅读:
    iis日志时间与本地日期不一样
    iis原理介绍
    IIS如何确定请求的处理程序
    handle 和module
    调试IIS服务器
    JS面向对象学习
    图片垂直居中大杂烩
    淘宝双十一页面(Flexible)
    用rem适配移动端
    About getByClass
  • 原文地址:https://www.cnblogs.com/hankuikui/p/8022629.html
Copyright © 2011-2022 走看看