Hi all;
As per the tutorial provided in search api-sort(Elastic search guide),I am
trying to sort results according to "Size" of the file field(long type).
But as per my observation it works perfectly fine in String types fields.
if i want to apply it to "Size" field i would be doing something like this
as an example:
{ "sort" : { { "Size" : {"order" : "asc"} } }, "query" : { "term" : {
"user" : "arien" } } }
But as mentioned in the guide at the end that if one wants to apply it to
other than String type fields one must mention "type" explicitly
So i tried with following query say;
===========================================
{ "sort" : { { "Size" : {"order" : "asc" ,"type" : "long"} } }, "query" : {
"term" : { "user" : "arien" } } }
With above too i m not getting sorted results in "Size",
Please guide me if i m doing something wrong in this for which i will be
very grateful.
Thanks