Hi,
I am trying to use sort-order in $query. It is returning 0 records.  All my
documents are JSON. Any inputs?

{"$query":{"options":{"sort-order":[{"direction":"descending","element":{"name":"firstName","score":
null}}]}}}

Tried  with
{"$query":{"options":{"sort-order":[{"direction":"descending","json-property":"firstName"}]}}}

Note: I created Index on that field too.


Regards
Shan.
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to