# Forcing numeric fields

**URL:** <https://community.graylog.org/t/forcing-numeric-fields/1005>\
**Category:** Graylog Central (peer support)\
**Created:** [May 2, 2017, 12:26pm UTC](https://community.graylog.org/t/forcing-numeric-fields/1005 "2017-05-02T12:26:37Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [May 3, 2017, 7:24am UTC](https://community.graylog.org/t/forcing-numeric-fields/1005/4 "2017-05-03T07:24:24Z")

</div>

Did you remove the previously indexed messages or restricted the time range of the search to after you’ve changed the type of the fields?

Additionally, you should create a custom index mapping with the correct types: [http://docs.graylog.org/en/2.2/pages/configuration/elasticsearch.html#custom-index-mappings](http://docs.graylog.org/en/2.2/pages/configuration/elasticsearch.html#custom-index-mappings)

---

_[View the full topic](https://community.graylog.org/t/forcing-numeric-fields/1005)._
