gpt4 book ai didi

elasticsearch - Kibana 不在嵌套字段上搜索

转载 作者:行者123 更新时间:2023-11-29 02:52:21 24 4
gpt4 key购买 nike

使用 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

谢谢。

最佳答案

Kibana 在下面使用了query_string 查询,后者是does not support querying on nested fields .

它仍在进行中,但与此同时您需要以不同的方式进行。

更新:

从 ES 7.6 开始,它现在是 possible to search on nested fields

关于elasticsearch - Kibana 不在嵌套字段上搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48398791/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com