hi guys
The result I just wanted is (as mysql)
" ORDER BY count DESC "
so I did this :
{
"query" : { text" : { "word" : "blah" } },
"sort" : { "count" : { "order" : "desc" } }
}
This Query is working fine..But it return value is NOT order by count desc.
result :
{
...
"_score" : null, "_source" : {"word":"....", "count" ; "8"},
"sort" : [ -9223372036854775808 ]
}
{
...
"_score" : null, "_source" : {"word":"....", "count" ; "33"},
"sort" : [ -9223372036854775808 ]
}
{
...
"_score" : null, "_source" : {"word":"....", "count" ; "75"},
"sort" : [ -9223372036854775808 ]
}
{
...
"_score" : null, "_source" : {"word":"....", "count" ; "29"},
"sort" : [ -9223372036854775808 ]
}
..........