# Issue with keyword aggregation following update to 6.0

**URL:** https://discuss.elastic.co/t/issue-with-keyword-aggregation-following-update-to-6-0/110113
**Category:** Kibana
**Created:** [December 4, 2017, 10:10am UTC](https://discuss.elastic.co/t/issue-with-keyword-aggregation-following-update-to-6-0/110113 "2017-12-04T10:10:22Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![MrTraan](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MrTraan](https://discuss.elastic.co/u/MrTraan)
#### Post date: [December 6, 2017, 12:59pm UTC](https://discuss.elastic.co/t/issue-with-keyword-aggregation-following-update-to-6-0/110113/9 "2017-12-06T12:59:38Z")

</div>

Yay I figured it all out!

If anyone come across this post I had to the following request:

```auto
PUT /my_index/mappings/doc
{
  "_all": {
    "enabled": true
  },
  "properties": {
    "@timestamp": {
      "type": "date"
    },
    "@version": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "index": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "intent": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "message_content": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "message_type": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    },
    "processing_time": {
      "type": "long"
    }
  }
}

```

And then I did the following request to apply the mapping to my stored documents:

```auto
POST /my_index/_update_by_query?pretty&conflicts=proceed&refresh

```

Thanks a lot @weltenwort for your help!

---

_[View the full topic](https://discuss.elastic.co/t/issue-with-keyword-aggregation-following-update-to-6-0/110113)._
