Re: [MarkLogic Dev General] Best approach for sorting content based on a field/element

2014-02-25 Thread Charles Greer
Hi Gnanaprakash, This should work for sorting by field in REST/Search API: The type and collation have to match your field range index (and you do need that field range index). Use return-plan to ensure that you're using the index. Charles Charles Greer Senior Engineer MarkLogic Corpo

Re: [MarkLogic Dev General] Best approach for sorting content based on a field/element

2014-02-25 Thread David Ennis
HI. The first thing I can think of is to make sure that your field/element you are sorting on is indexes. Seprately, if you are using a FLWOR statement for your sorting (perhaps the result of cts:search, this works if you are sorting directly on the results. But if doing it later - like as

[MarkLogic Dev General] Best approach for sorting content based on a field/element

2014-02-25 Thread Gnanaprakash.Bodireddy
Hi I am trying to see the best approach to sort the content/results in REST. We have millions of files in our DB and when we try to use sort field it gives expand tree cache exception. What is the best approach to include sorting on a specific field? Regards, Gnanaprakash Bodireddy This e-ma