zoukankan      html  css  js  c++  java
  • Fielddata is disabled on text fields by default Set fielddata=true on [service.address]

    2个字段的:

    PUT metricbeat-7.3.0/_mapping
    {
      "properties": {
        "service": {
          "properties": {
            "address": {
              "type": "text",
              "fielddata": true,
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            }
          }
        }
      }
    }
    

    3个字段的:

    PUT metricbeat-7.3.0/_mapping
    {
      "properties": {
        "kafka": {
          "properties": {
            "topic": {
                "properties": {
                    "name":{
                        "type": "text",
                        "fielddata": true,
                        "fields": {
                        "keyword": {
                            "type": "keyword",
                            "ignore_above": 256
                            }
                        }
                    }
                }
    
            }
          }
        }
      }
    }
    

    4个字段的:

    PUT metricbeat-7.3.0/_mapping
    {
        "properties": {
            "kafka": { 
                "properties": {
                    "consumergroup": {
                        "properties": {
                            "client":{
                                "properties": {
                                    "id": {
                                        "type": "text",
                                        "fielddata": true,
                                        "fields": {
                                            "keyword": {
                                                "type": "keyword",
                                                "ignore_above": 256
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    
  • 相关阅读:
    面试问题
    知识点整合
    前端错误
    基于.NET平台常用的框架整理
    BFC和haslayout
    javascript面向对象
    javascript变量的作用域
    2014-05-26 总结
    2014-05-23 总结
    PHP实现mvc模式的思想
  • 原文地址:https://www.cnblogs.com/sanduzxcvbnm/p/12172935.html
Copyright © 2011-2022 走看看