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"
            }
          }
        }
      }
    }
  • 相关阅读:
    教程:如何手动安装Xamarin与Xamarin for VisualStudio
    安装matplotlib
    pycharm中文专业版安装使用
    在win7下安装PowerShell 5.0遇到的坑
    1997-2017
    系统界面截图
    组态与非组态结合的LT
    opencv mat转qimage
    QTableWidget 样式文件
    hiredis window 源码编译
  • 原文地址:https://www.cnblogs.com/zhangfeitaimengle/p/9716923.html
Copyright © 2011-2022 走看看