Suppose you have a field which you have ingested as "text", but it is actually an IP address (sometimes). You would like to treat it as an IP address, but can't or won't re-create the index. Then do this:
$ curl -XPUT 'http://localhost:9200/myindex/logs/_mapping
{
"properties": {
"Network Information Network Address": {