Ale*_*nko 4 lucene elasticsearch 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": {}
}
}Run Code Online (Sandbox Code Playgroud)
当我在单个字段上搜索 kibana 时 - 一切正常。尽管如此,我仍然无法搜索诸如“nested.name”之类的嵌套字段。
我在 kibana 中的查询示例:nested.name:hi
谢谢。
| 归档时间: |
|
| 查看次数: |
1952 次 |
| 最近记录: |