# Bucket aggregation Terms

**URL:** <https://discuss.elastic.co/t/bucket-aggregation-terms/222055>\
**Category:** Kibana\
**Created:** [March 4, 2020, 11:08am UTC](https://discuss.elastic.co/t/bucket-aggregation-terms/222055 "2020-03-04T11:08:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Denis\_Vasiliev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denis_vasiliev/32/45546_2.png) [@Denis\_Vasiliev](https://discuss.elastic.co/u/Denis_Vasiliev)\
**Post date:** [March 4, 2020, 11:08am UTC](https://discuss.elastic.co/t/bucket-aggregation-terms/222055/1 "2020-03-04T11:08:43Z")

</div>

I have an index with keyword field.

```
{
  "winlogbeat-000011" : {
    "mappings" : {
      "user.name" : {
        "full_name" : "user.name",
        "mapping" : {
          "name" : {
            "type" : "keyword",
            "norms" : true,
            "fields" : {
              "text" : {
                "type" : "text"
              }
            }
          }
        }
      }
    }
  }
}

```

Despite that fact Kibana only allows me to aggregate on user.name.keywords.

If I use just field user.name it marks it with red and requires to fix errors.

Is this a bug or feature?

ES/Kibana 7.6.0

---

<div class="post-metadata">

**Author:** ![Denis\_Vasiliev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denis_vasiliev/32/45546_2.png) [@Denis\_Vasiliev](https://discuss.elastic.co/u/Denis_Vasiliev)\
**Post date:** [March 4, 2020, 12:16pm UTC](https://discuss.elastic.co/t/bucket-aggregation-terms/222055/2 "2020-03-04T12:16:49Z")

</div>

Found solution.

If you change field mapping, you have to update index templates.

---

<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:** [April 1, 2020, 12:16pm UTC](https://discuss.elastic.co/t/bucket-aggregation-terms/222055/3 "2020-04-01T12:16:57Z")

</div>

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