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