• 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"
            }
          }
        }
      }
    }
  • 相关阅读:
    JS 中深拷贝的几种实现方法
    实现一个函数clone,可以对JS中的5种数据类型(Number、String、Object、Array、Boolean)进行值复制
    etTimeout来实现setInterval
    原型链
    Vue.js面试题整理
    JS中的闭包
    JavaScript的数据类型
    MyBatis-Plus使用(1)-概述+代码生成器
    JDK8的Optional用法
    动态修改HttpServletRequest的Post请求参数
  • 原文地址:https://www.cnblogs.com/zhangfeitaimengle/p/9716923.html
Copyright © 2020-2023  润新知