Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nested Object in Kibana visualize

I have uploaded the JSON file in elasticsearch and my mapping contains of some nested objects.

The problem is that, in Kibana, in visualize I can not see them

This is my mapping:

"comments": {
    "type": "nested",
    "properties": {
        "count": {
            "type": "integer"
        },
        "data": {
            "type":"nested",
            "properties": {
                "created_time": {
                    "type": "integer"
                }
            }
        }
    }
}

But in kibana when I insert comments.count I cannot see any result, but in Discover page, the comments.count field is exist!

How can I search for this field?

like image 801
sinaei Avatar asked Jun 04 '15 15:06

sinaei


People also ask

What is nested object in Elasticsearch?

The nested type is a specialised version of the object data type that allows arrays of objects to be indexed in a way that they can be queried independently of each other.

What is nested object?

Nested objects are the objects that are inside an another object. In the following example 'vehicles' is a object which is inside a main object called 'person'. Using dot notation the nested objects' property(car) is accessed.

What is a nested field?

When a packed class contains an instance field that is a packed type, the data for that field is packed directly into the containing class. The field is known as a nested field .


1 Answers

As I found, Kibana can not deal with nested or parent/child

like image 72
sinaei Avatar answered Oct 10 '22 03:10

sinaei