# Array data in documents

**URL:** <https://discuss.elastic.co/t/array-data-in-documents/159172>\
**Category:** Kibana\
**Created:** [December 3, 2018, 12:35pm UTC](https://discuss.elastic.co/t/array-data-in-documents/159172 "2018-12-03T12:35:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![1862347ba9566e72a47d](https://avatars.discourse-cdn.com/v4/letter/1/cdc98d/32.png) [@1862347ba9566e72a47d](https://discuss.elastic.co/u/1862347ba9566e72a47d)\
**Post date:** [December 3, 2018, 12:35pm UTC](https://discuss.elastic.co/t/array-data-in-documents/159172/1 "2018-12-03T12:35:55Z")

</div>

How in the table to deduce lines from a data array?  
There are documents in the index, where data is stored in a nested array.  
When a filter is used, and only one thing needs to be found, the table also displays the rest of the information that is in this document. How to make the table display only what is filtered, regardless of whether it is in the array or not.

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [December 4, 2018, 4:55pm UTC](https://discuss.elastic.co/t/array-data-in-documents/159172/2 "2018-12-04T16:55:52Z")

</div>

Can you please provide a sample document, the index mapping, request, and response? That will help clarify the problem.

Thanks,  
Nathan

---

<div class="post-metadata">

**Author:** ![1862347ba9566e72a47d](https://avatars.discourse-cdn.com/v4/letter/1/cdc98d/32.png) [@1862347ba9566e72a47d](https://discuss.elastic.co/u/1862347ba9566e72a47d)\
**Post date:** [December 5, 2018, 6:59am UTC](https://discuss.elastic.co/t/array-data-in-documents/159172/3 "2018-12-05T06:59:33Z")

</div>

Sample documents, where objects in array

```
   fn.reqs.req {
      "shortName": "ET",
      "name": "Name1",
      "content": "Content2"
    },
    {
      "shortName": "TR",
      "name": "Name2",
      "content": "Content2"
    }
```

---

<div class="post-metadata">

**Author:** ![1862347ba9566e72a47d](https://avatars.discourse-cdn.com/v4/letter/1/cdc98d/32.png) [@1862347ba9566e72a47d](https://discuss.elastic.co/u/1862347ba9566e72a47d)\
**Post date:** [December 8, 2018, 10:43am UTC](https://discuss.elastic.co/t/array-data-in-documents/159172/4 "2018-12-08T10:43:28Z")

</div>

I provide more information on this issue.

request  
[https://pastebin.com/V6fg2Y5n](https://pastebin.com/V6fg2Y5n)

response  
[https://pastebin.com/SppdcEye](https://pastebin.com/SppdcEye)

simple doc  
[https://pastebin.com/jWVqnB6S](https://pastebin.com/jWVqnB6S)

index mapping  
[https://pastebin.com/HcLaKQWQ](https://pastebin.com/HcLaKQWQ)

---

<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:** [January 5, 2019, 10:43am UTC](https://discuss.elastic.co/t/array-data-in-documents/159172/5 "2019-01-05T10:43:31Z")

</div>

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