# Field of nested type displayed as unindexed

**URL:** https://discuss.elastic.co/t/field-of-nested-type-displayed-as-unindexed/278812
**Category:** Kibana
**Created:** [July 15, 2021, 2:56pm UTC](https://discuss.elastic.co/t/field-of-nested-type-displayed-as-unindexed/278812 "2021-07-15T14:56:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![tobu](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tobu](https://discuss.elastic.co/u/tobu)
#### Post date: [July 15, 2021, 2:56pm UTC](https://discuss.elastic.co/t/field-of-nested-type-displayed-as-unindexed/278812/1 "2021-07-15T14:56:05Z")

</div>

Hello  
I have created following index

```auto
PUT my-index-000001
{
  "mappings": {
    "properties": {
      "users": {
        "type": "nested" 
      }
    }
  }
}

PUT my-index-000001/_doc/1
{
  "group" : "fans",
  "users" : [
    {
      "first" : "John",
      "last" : "Smith"
    },
    {
     "first" : "Alice",
      "last" : "White"
    }
  ]
}

```

In Discover tab I see information that this field is unindexed

![kibana question](https://us1.discourse-cdn.com/elastic/original/3X/7/5/75e5274e30472312a7a6bd2f5e37760a13a3666f.png)

However this query works fine

```auto
GET my-index-000001/_search
{
  "query": {
    "nested": {
      "path": "users",
      "query": {
        "bool": {
          "must": [
            { "match": { "users.first": "John" }},
            { "match": { "users.last": "Smith" }} 
          ]
        }
      }
    }
  }
}

```

Why this unindexed alert occured?

---

<div class="post-metadata">

### Author: ![Patrick\_Mueller](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_mueller/32/109425_2.png) [@Patrick\_Mueller](https://discuss.elastic.co/u/Patrick_Mueller)
#### Post date: [July 28, 2021, 5:33pm UTC](https://discuss.elastic.co/t/field-of-nested-type-displayed-as-unindexed/278812/2 "2021-07-28T17:33:30Z")

</div>

Hello Tomasz!

What version of elastic stack are you using? I think some of the older versions of the stack did not have support for searching through nested fields, since they're a little complicated and special KQL syntax is required to use them. Recent versions do have some support though; see this doc for support in 7.13 - [Kibana Query Language | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/7.13/kuery-query.html#_nested_field_queries)

It would also be good to see the mappings for that index, after you added the nested field. To make sure it didn't become non-indexed for some reason (from a parent field mapping, or index template or similar).

---

<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: [August 25, 2021, 5:34pm UTC](https://discuss.elastic.co/t/field-of-nested-type-displayed-as-unindexed/278812/3 "2021-08-25T17:34:05Z")

</div>

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