模板使用

作者: 专职掏大粪 | 来源:发表于2020-06-01 15:48 被阅读0次
    {
      "order": 1,
      "template": "mobile_event.*",
      "settings": {
        "index": {
          "codec": "best_compression",
          "routing": {
            "allocation": {
              "exclude": {
                "_name": "..."
              },
              "total_shards_per_node": "1"
            }
          },
          "number_of_shards": "17",
          "number_of_replicas": "0"
        }
      },
      "mappings": {
        "mobile_event": {
          "_all": {
            "enabled": false
          },
          "properties": {
            "attr": {
              "type": "text",
              "norms": false
            },
            "basic": {
              "properties": {
                "_event_hash": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "android_id": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "app_code": {
                  "type": "keyword"
                },
                "app_ver": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "app_version_code": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "brand": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "carrier": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "carrier_country_code": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "carrier_network_code": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "channel_code": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "channel_origin": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "client_ip": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "ctime": {
                  "type": "long"
                },
                "datetime": {
                  "type": "date"
                },
                "day_before": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "day_first": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "device_token": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "device_type": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "dt": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "event_code": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "event_guid": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "event_time": {
                  "type": "long"
                },
                "hardware_model": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "hour": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "idfa": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "idfv": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "ip": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "ip_s": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "ip_server": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "lat": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "launch_guid": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "lng": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "mfw_did": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "mfw_env": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "minute": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "net": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "open_udid": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "puri": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "ref": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "sdk_ver": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "sys_ver": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "topic": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "uid": {
                  "type": "keyword",
                  "ignore_above": 256
                },
                "umddid": {
                  "type": "long"
                },
                "uri": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "user_agent": {
                  "type": "keyword",
                  "ignore_above": 256,
                  "doc_values": false,
                  "norms": false
                },
                "uuid": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            }
          }
        }
      },
      "aliases": {
        "mobile_event": {}
      }
    }
    

    相关文章

      网友评论

        本文标题:模板使用

        本文链接:https://www.haomeiwen.com/subject/mxlszhtx.html