我尝试显示 Kibana 仪表板,它运行良好。不幸的是,当我想添加一个包含公司所在国家/地区的饼图(或其他表示形式)时,我有一个空面板。
我可以使用 kibana 查询来过滤特定国家/地区,但我无法显示包含嵌套文档的面板。
我的映射(我必须使用嵌套字段,因为公司可以有多个位置):
{
"settings" : {
"number_of_shards" : 1
},
"mappings": {
"company" : {
"properties" : {
"name" : { "type" : "string", "store" : "yes" },
"website" : { "type" : "string", "store" : "yes" },
"employees" : { "type" : "string", "store" : "yes" },
"type": { "type" : "string", "store" : "yes" },
"locations" : {
"type" : "nested",
"properties" : {
"city" : { "type" : "string", "store" : "yes" },
"country" : { "type" : "string", "store" : "yes" },
"coordinates" : { "type" : "geo_point", "store" : "yes" }
}
}
}
}
}
}
你知道我怎样才能显示带有嵌套对象的面板吗?实施了吗?
谢谢,凯文