How to make a field aggregatable in Kibana

I changed it in my json template and rebooted the system and it still comes up as a text type.