zoukankan      html  css  js  c++  java
  • ES create index template

     PUT _template/cq_temple
    {
      "template": "cq-*",
      "settings": {
        "number_of_shards": 3
      },
      "mappings": {
        "_default_": {
          "dynamic_templates": [
            {
              "message_field": {
                "path_match": "message",
                "mapping": {
                  "norms": false,
                  "type": "text"
                },
                "match_mapping_type": "string"
              }
            },
            {
              "string_fields": {
                "mapping": {
                  "norms": false,
                  "type": "keyword"
                },
                "match_mapping_type": "string",
                "match": "*"
              }
            }
          ],
          "_all": {
            "norms": false,
            "enabled": true
          },
          "properties": {
            "@timestamp": {
              "copy_to": false,
              "type": "date"
            },
            "@version": {
              "copy_to": false,
              "type": "keyword"
            },
            "ElasticType": {
              "copy_to": false,
              "type": "keyword"
            },
            "ElasticDocType": {
              "copy_to": false,
              "type": "keyword"
            }
          }
        }
      }
    }
  • 相关阅读:
    Linux提供两个格式化错误信息的函数
    warning: incompatible implicit declaration of built-in function ‘exit’
    RDMA的ibv_post_send() 函数
    (C语言)结构体成员的引用->(箭头)和 .(点)
    bcopy函数
    bzero函数
    利用GCC编译器生成动态链接库和静态链接库
    GCC编译器编译链接
    结构体类型定义(C语言)
    C语言编译链接
  • 原文地址:https://www.cnblogs.com/zhangfeitaimengle/p/9716923.html
Copyright © 2011-2022 走看看