Hi, Can anyone help me on this?
We are working on ML 6 with the following configurations: 1) App Servers default collation: http://marklogic.com/collation/ 2) Path Range Index is created with the collation http://marklogic.com/collation/codepoint I have not specified any collation in my query its plain cts:path-range-query IT perfectly works on ML6.0.5.3 However with the same configuration it does not work in ML7.0.4.1 and when I changed the collation at App server to code point it started working. I understand the behaviour of ML7, wanted to confirm if this is a bug fix? Thanks & Regards Rahul -----Original Message----- From: Rahul Gupta Sent: 20 November 2014 17:51 To: [email protected] Subject: Path Range Queries Default Collation. We are working on ML 6 with the following configurations: App Servers default collation: http://marklogic.com/collation/ Path Range Index is created with the collation http://marklogic.com/collation/codepoint I have not specified any collation in my query its plain cts:path-range-query IT perfectly works on ML6.0.5.3 However with the same configuration it does not work in ML7.0.4.1 and when I changed the collation at App server to code point it started working. I understand the behaviour of ML7, wanted to confirm if this is a bug fix? Thanks & Regards Rahul Gupta -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: 15 November 2014 01:30 To: [email protected] Subject: General Digest, Vol 125, Issue 23 Send General mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit http://developer.marklogic.com/mailman/listinfo/general or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of General digest..." Today's Topics: 1. Path Range Queries Default Collation. (Rahul Gupta) 2. Re: Path Range Queries Default Collation. (Mary Holstege) 3. Re: Path Range Queries Default Collation. (Michael Blakeley) ---------------------------------------------------------------------- Message: 1 Date: Fri, 14 Nov 2014 12:16:37 +0000 From: Rahul Gupta <[email protected]> Subject: [MarkLogic Dev General] Path Range Queries Default Collation. To: "[email protected]" <[email protected]> Message-ID: <3bd04998e7d64320ad4bf2cd7f0c7...@sixpr06mb0413.apcprd06.prod.outlook.com> Content-Type: text/plain; charset="us-ascii" 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? [Description: Description: cid:[email protected]] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://developer.marklogic.com/pipermail/general/attachments/20141114/2c5ef7a3/attachment-0001.html -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 1865 bytes Desc: image001.png Url : http://developer.marklogic.com/pipermail/general/attachments/20141114/2c5ef7a3/attachment-0001.png ------------------------------ Message: 2 Date: Fri, 14 Nov 2014 08:08:23 -0800 From: Mary Holstege <[email protected]> Subject: Re: [MarkLogic Dev General] Path Range Queries Default Collation. To: MarkLogic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset="utf-8"; format=flowed; delsp=yes On Fri, 14 Nov 2014 04:16:37 -0800, 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? > > [Description: Description: cid:[email protected]] > 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 > What will happen if you have range index queries that don't explicitly mention the collation is that we'll look for the range index with the default collation, which will come from your query prolog (if you have it explicitly there) or from the appserver setting. If there is no range index defined with that collation, you'll get an error. If there is, you'll be using that range index. So if you had both the codepoint collation version and the root collation version, the behaviour of your application would change, as these collations have different ideas about equality and ordering. Since you are seeing a change, this is coming from the appserver setting. I'd suggest you switch it to whatever is appropriate for your application. //Mary ------------------------------ Message: 3 Date: Fri, 14 Nov 2014 08:08:31 -0800 From: Michael Blakeley <[email protected]> Subject: Re: [MarkLogic Dev General] Path Range Queries Default Collation. To: MarkLogic Developer Discussion <[email protected]> Message-ID: <[email protected]> Content-Type: text/plain; charset=utf-8 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 End of General Digest, Vol 125, Issue 23 **************************************** _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
