# Can nested documents be used to create visualizations in Kibana 5.2?

**URL:** <https://discuss.elastic.co/t/can-nested-documents-be-used-to-create-visualizations-in-kibana-5-2/74373>\
**Category:** Kibana\
**Created:** [February 8, 2017, 1:37pm UTC](https://discuss.elastic.co/t/can-nested-documents-be-used-to-create-visualizations-in-kibana-5-2/74373 "2017-02-08T13:37:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shr\_son](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@shr\_son](https://discuss.elastic.co/u/shr_son)\
**Post date:** [February 8, 2017, 1:37pm UTC](https://discuss.elastic.co/t/can-nested-documents-be-used-to-create-visualizations-in-kibana-5-2/74373/1 "2017-02-08T13:37:05Z")

</div>

I needed to create relationship between documents for join type querying.

Basic mapping:

```
{
  "mappings": {
    "type1":{
      "properties": {
        "type2": {
          "type": "nested"
        },
        "type3": {
          "type": "nested"
        },
        "type4": {
          "type": "nested"
        }
      }
    }
  }
}

```

and also can i use the search bar in discover to run an elasticsearch query that contains nested keyword:

```
"query": {
        "nested" : {
            "path" : "type2",
            "query" : {
                "bool" : {
                    "must" : ...
                }
            }
        }
    }

```

Edit: formatting

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [February 8, 2017, 4:21pm UTC](https://discuss.elastic.co/t/can-nested-documents-be-used-to-create-visualizations-in-kibana-5-2/74373/2 "2017-02-08T16:21:06Z")

</div>

i don't think nested objects are supported in kibana.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 8, 2017, 4:21pm UTC](https://discuss.elastic.co/t/can-nested-documents-be-used-to-create-visualizations-in-kibana-5-2/74373/3 "2017-03-08T16:21:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
