Sorting results on type string


(nabizan) #1

hi i want to be able to sort on field type string
my mapping:
"Nick" : {"type": "string", "analyzer": "not_analyzed"}

request:
"sort" : {"Nick": "desc"}

but the results i get isnt properly sorted


(Shay Banon) #2

This should work properly, gist a curl recreation and we can look at it (http://www.elasticsearch.org/help).
On Thursday, February 17, 2011 at 1:59 PM, nabizan wrote:

hi i want to be able to sort on field type string
my mapping:
"Nick" : {"type": "string", "analyzer": "not_analyzed"}

request:
"sort" : {"Nick": "desc"}

but the results i get isnt properly sorted

View this message in context: http://elasticsearch-users.115913.n3.nabble.com/sorting-results-on-type-string-tp2518275p2518275.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.


(system) #3