zoukankan      html  css  js  c++  java
  • ES 数据库常见命令

    1. 创建索引

    PUT test    //test 索引名称
    返回结果:
    {
    "acknowledged": true, "shards_acknowledged": true, "index": "test" }

    2. 查询索引设置

    GET test/_settings?pretty
    返回结果:
    {
      "test": {
        "settings": {
          "index": {
            "creation_date": "1629217681883",
            "number_of_shards": "5",
            "number_of_replicas": "2",
            "uuid": "5p2S3xQ9QLGhtgoKc4A",
            "version": {
              "created": "6000099"
            },
            "provided_name": "test"
          }
        }
      }
    }

    3. 查询所有索引

    GET _cat/indices?v
    health status index                     uuid                   pri rep docs.count docs.deleted store.size pri.store.size
    yellow open   test                      LL9Lbu0LTLKeJRb7Em4tiA   5   1          0            0      1.1kb          1.1kb

    4. 设置副本数

    PUT smartpen_pages_dots/_settings
    {
      "number_of_replicas": 1
    }
    返回结果:
    {
      "acknowledged": true
    }

     

     

  • 相关阅读:
    指定pdf的格式
    iptables 防火墙
    jumpserver2
    jquery UI
    python 自动化审计
    Jumpserver
    认识二进制安全与漏洞攻防技术 (Windows平台)
    将这段美化的css代码
    pycharm
    android Tips
  • 原文地址:https://www.cnblogs.com/mypsq/p/15154928.html
Copyright © 2011-2022 走看看