I wasn't able to find the correct syntax for adding sort in queries using
JSON.
Could someone provide an example.
Tks
Tullio
--
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
--
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.