[MarkLogic Dev General] How to make the cts::element-value-match search punctuation-insensitive?

Tim Meagher tim at aaom.net
Fri Apr 30 10:59:23 PDT 2010


Hi folks,

 

I have a query that seems to be kind of slow - it uses
cts:element-value-query() with the case-insensitive, diacritic-insensitive,
and punctuation-insensitive options.  However, I want to speed up the search
by creating a range element index on the elements of interest.  I noticed,
however, that the corresponding lexicon query would be
cts::element-value-match(), but it only provides case-insensitive and
diacritic-insensitive search options but not the punctuation-insensitive
option.  How can I make this lexicon query punctuation-insensitive?  Can I
do it by building a custom collation with the alternate characters setting
set to "avoid punctuation"?

 

Thank you!

 

Tim Meagher

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100430/0d92bbd9/attachment.html 


More information about the General mailing list