Hi Kiruthika, I’d recommend looking at using the cts:order option of cts:search, new in MarkLogic 8..
http://docs.marklogic.com/cts:index-order Cheers, Geert From: Keerthi <[email protected]<mailto:[email protected]>> Reply-To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Date: Wednesday, June 24, 2015 at 3:27 PM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: [MarkLogic Dev General] Range-index on document Property Hi, Will adding a range index on a property element, help in increasing the performance when used in "orderby" for sorting.We are aware that adding range index on elements increase performance in orderby for sorting. But since this is a property we are not sure. For example, order by (xdmp:document-get-properties($uri,xs:QName("date"))/text()) Note: Here 'date' is a ML property. So will adding a range index on "date" element increase the performance ? Regards, Kiruthika
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
