https://docs.marklogic.com/guide/search-dev/encodings_collations describes the 
differences between the root collation and the codepoint collation. The root 
collation "adds more useful case and diacritic sensitivity to the Unicode 
codepoint order, so it will make more sensible sort orders when you take case 
sensitivity and diacritic sensitivity into consideration." In general the root 
collation is pretty good for sorting, while the codepoint collation may be a 
little faster for some queries.

As far as I know the default collation didn't change between MarkLogic 6 and 7. 
The release notes at https://docs.marklogic.com/guide/relnotes don't seem to 
say anything about that. Maybe this was a configuration change in your 
environment? Every application server can set its own default collation 
setting. If you look in the data directory you can see the past 9 config 
changes for groups.xml and compare them. Also, any module can override the 
default collation in its prolog.

When the evaluation environment's default collation is not the same as a range 
index collation, you can adjust your query to specify the correct collation. 
It's a good idea to always specify the collation for your range index, just in 
case the environment changes. With 
https://docs.marklogic.com/cts:path-range-query the range index collation goes 
in the $options parameter.

-- Mike

> On 14 Nov 2014, at 04:16 , Rahul Gupta <[email protected]> wrote:
> 
> There are some of the queries in my code which are using cts:path-range-query 
> without any collation mentioned on them.
>  
> I am now upgrading Marklogic from 6.0-5.3 to 7.0-4.1 and I noticed that 
> default collation of these queries have been changed.
>  
>  
> In ML 6.0-5.3 the default collation is http://marklogic.com/collation/
> In ML 7.0-4.1, it is http://marklogic.com/collation/codepoint
>  
> Can you please tell me what will be the impact of them while migrating to ML7?
>  
> <image001.png>
> Thanks & Regards
> Rahul Gupta |Senior Associate(Technology) | Nagarro Software Pvt. Ltd.
> Plot 371, Sector–18,Electronic City,Gurgaon(H.R.)-122015, India
> Mobile No: +91-9968923777
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://developer.marklogic.com/mailman/listinfo/general

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

Reply via email to