Pull integer from string

I should have mentioned that. It will still be a string until you rotate the index it is in. Elasticsearch maintains the type until the index is incremented. All previous indexes will retain it as a string. There is a way to fix that that I wrote up but it is a rather involved process - you can find it here if you are interested.

Also - mark the answer for this topic so others can find it easily. :smiley: