Using nested fields in kibana panels

I tried to display the Kibana dashboard and it works well. Unfortunately, when I want to add a pie chart (or other view) containing the countries where the companies are located, I have an empty panel.

I can use kibana queries to filter in a specific country, but I cannot display a panel with attached documents.

My mapping (I have to use nested fields because a company can have multiple locations):

{ "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" } } } } } } } 

Do you know how I can display a panel with nested objects? Is it implemented?

Thanks Kevin

+7
elasticsearch kibana
source share
2 answers

you are missing one parameter ("include_in_parent": true) in your mapping. The correct mapping should be:

 { "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", "include_in_parent": true, "properties" : { "city" : { "type" : "string", "store" : "yes" }, "country" : { "type" : "string", "store" : "yes" }, "coordinates" : { "type" : "geo_point", "store" : "yes" } } } } } } } 
0
source share

This is clearly Kibana's mistake. The facet request created by Kibana does not contain sub-fields to indicate this.

0
source share

All Articles