[MarkLogic Dev General] Reg: Diacritic-insensitive lexicons
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*".
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
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the General