Sort in JSON

I wasn't able to find the correct syntax for adding sort in queries using
JSON.
Could someone provide an example.
Tks
Tullio

--

Hi Tullio,

Everything is here:

http://www.elasticsearch.org/guide/reference/api/search/sort.html

What is your concern?

{
"sort" : [
{ "post_date" : {"order" : "asc"} },
"user",
{ "name" : "desc" },
{ "age" : "desc" },
"_score"
],
"query" : {
"term" : { "user" : "kimchy" }
}
}

Le 30 août 2012 à 14:59, tullio0106 tbettinazzi@axioma.it a écrit :

I wasn't able to find the correct syntax for adding sort in queries using
JSON.
Could someone provide an example.
Tks
Tullio

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--