Thanks Geert. I cannot believe that I didn't seen this part in the document.
Now for proof of concept, I feel this part is pretty good for me. For my situation, the speed is good enough for now. I still have other part of data for the page, I'll put everything together and see how the speed is. But if just for this part, I think I can build it on the fly. Thanks everyone for helping me out of this. I appreciate all the effort you put on me. Helen >>> Geert Josten <[email protected]> 04/13/10 1:08 PM >>> > For the order by part, I have a question: I build the range > index using > collation http://marklogic.com/collation/en/MO, it is the > same as the one I > need for order by. I'm not sure when cts:element- values > returns value, is it > using the collation that I put for range index? It seems the > list is correct, I > just want to double check. > > another question for cts:element- values, is it possible that > I can change the > return ordering? currently the list it returns are in > ascending order, if I want > the list returned in descending order, is there anyway I can > do it? or I have to > use order by? It is both described here: http://developer.marklogic.com/pubs/4.1/apidocs/Lexicons.html#cts:element- values You can specify ascending or descending as option, and pick a specific collation. Kind regards, Geert drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1- 4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 P Please consider the environment before printing this mail. De informatie - verzonden in of met dit e- mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
