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"
            }
          }
        }
      }
    }
  • 相关阅读:
    基于XMPP的即时通信系统的建立 — XMPP IQ详解
    XMPPManager 解析
    Xcode 工程文件“.xcodeproj”文件夹解析
    Description &&debugDescription && runtime(debug模式下调试model)
    day04作业
    数字、字符串、列表、字典,jieba库,wordcloud词云
    if,for,异常,random模块,计算圆周率
    day03
    day02
    计算机基础
  • 原文地址:https://www.cnblogs.com/zhangfeitaimengle/p/9716923.html
Copyright © 2011-2022 走看看