Kibana不搜索嵌套字段

时间:2018-01-23 09:55:51

标签: elasticsearch lucene kibana

使用Elasticsearch / Kibana并尝试在嵌套对象中搜索字段。但它似乎不起作用。这是我在模板中使用的映射:

{
  "order": 0,
  "template": "ss7_signaling*",
  "settings": {
    "index": {
      "mapping.total_fields.limit": 3000,
      "number_of_shards": "5",
      "refresh_interval": "30s"
  },
  "mappings": {
    "_default_": {
      "dynamic_templates": [
        {
          "string_fields": {
            "mapping": {
              "fielddata": {
                "format": "disabled"
              },
              "index": "no",
              "type": "string"
            },
            "match_mapping_type": "string",
            "match": "*"
          }
        }
      ],
      "properties": {
        "message": {
          "index": "not_analyzed",
          "type": "string"
        },
        "Protocol": {
          "index": "not_analyzed",
          "type": "string"
        },
        "IMSI": {
          "index": "not_analyzed",
          "type": "string"
        },
        "nested": {
            "type": "nested",
            "properties": {
                "name": {
                    "type": "string",
                    "index": "not_analyzed"
                }
            }
        },
        "Timestamp": {
          "format": "strict_date_optional_time||epoch_millis",
          "type": "date"
        },
        "@timestamp": {
          "type": "date"
        },
        "@version": {
          "index": "not_analyzed",
          "type": "string"
        }
      },
      "_all": {
        "norms": false,
        "enabled": false
      }
    }
  },
  "aliases": {
    "signaling": {}
  }
}

当我在单个字段上搜索kibana时 - 一切正常。尽管我无法搜索'nested.name'等嵌套字段。

我在kibana中的查询示例:nested.name:hi

感谢。

1 个答案:

答案 0 :(得分:1)

Kibana使用下方的query_string查询,后者使用does not support querying on nested fields

它仍在继续工作,但在此期间你需要采取不同的行动。