我试图显示一个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" : { …Run Code Online (Sandbox Code Playgroud)