This is true of all lexicons and range indexes (which are
essentially the same thing).  These indexes are created and
updated in sorted order, which is one of the reasons they're
so fast.  The other reason is that the values are stored in
the indexes themselves, so they don't need to be extracted
from the documents.

   For string lexicons the sorting order will be affected
by the collation you choose, but it will always be stable for
a given index.

On Sep 25, 2012, at 3:07 PM, Jason Hunter wrote:

> They're returned sorted alphabetically, so will be the same.
> 
> -jh-
> 
> On Sep 25, 2012, at 7:01 AM, Ford, Kevin wrote:
> 
>> Dear Collective,
>> 
>> When executing a cts:uris query, how likely, or unlikely, is it that the 
>> URIs returned would be in the same order each time the query is run, 
>> assuming no documents have been added or subtracted to the database?
>> 
>> Specifically, the query is:
>> 
>> cts:uris(
>>      $directory,
>>     (),
>>     cts:directory-query(
>>      ($directory),
>>           "1"
>>      )
>> )
>> 
>> Cordially,
>> 
>> Kevin
>> 
>> _______________________________________________
>> General mailing list
>> [email protected]
>> http://developer.marklogic.com/mailman/listinfo/general
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

---
Ron Hitchens {mailto:[email protected]}   Ronsoft Technologies
     +44 7879 358 212 (voice)          http://www.ronsoft.com
     +1 707 924 3878 (fax)              Bit Twiddling At Its Finest
"No amount of belief establishes any fact." -Unknown




_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to