Sorting a string field numerically


(Axsuul) #1

I have a field that is string type. Sometimes it will contain integer values
such as 1, 2, 10, 20. Currently how it sorts those is 1, 10, 2, 20. How do I
go about sorting that numerically so that it's 1, 2, 10, 20?

--
View this message in context: http://elasticsearch-users.115913.n3.nabble.com/Sorting-a-string-field-numerically-tp4024556.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

--


(system) #2