[MarkLogic Dev General] Reg: Diacritic-insensitive lexicons

Gajanan Chinchwadkar Gajanan.Chinchwadkar at marklogic.com
Mon Sep 5 22:53:31 PDT 2011


You mention that you are trying to count element names. But the query you are using seems to find all the elements named "name" whose value starts with "Annie".

Please clarify: what do you want to count exactly?

Also do you have a range index of type "string" set on the element named "name"? Basically the function element-value-match() simply reads all the values in the range index which match pattern "Annie*".

Thanks,

Gajanan
From: general-bounces at developer.marklogic.com [mailto:general-bounces at developer.marklogic.com] On Behalf Of ambika arumugam
Sent: Monday, September 05, 2011 9:55 PM
To: General MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Reg: Diacritic-insensitive lexicons

Hi all,

I am trying to get the count of element names using the query

cts:element-value-match(xs:QName("name"), "Annie*",("case-insensitive","collation=http://marklogic.com/collation/","diacritic-insensitive") )[1 to 10]
I am using cts:frequency of the above query to get the results.

For this i want values of Ánnie and Ànnie to match this query using diacritic-insensitive option as the third parameter of element-value-match query. But i am not getting results for this query as expected.
Should the collation be changed from root collation to unicode collation to get this done?

Regards
Ambika
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20110905/3aba4b03/attachment.html 


More information about the General mailing list