[MarkLogic Dev General] element-query with punctuation insensitive and punctuation marks as cts:text
Abhishek53 S
abhishek53.s at tcs.com
Wed Feb 1 01:29:34 PST 2012
Hi Folks,
I am not sure if I am wrong somewhere while explaining this issue of
punctuation-insensitive search with punctuation marks as cts:text
(element-query). While executing the below query I am not getting any
count back because punctuation mark is not ignored during search (even if
punctuation-insensitive). The expected behavior of our application is
always punctuation-insensitive . If I remove word query with punctuation
marks, It will start returning count based on remaining search criteria.
On the other hand word query with punctuation-sensitive option is behaving
similar to it is ignored from the search criteria.
Please let me know how to make this element-query punctuation insensitive
even if punctuation marks are present into cts:text node of word-query .
xdmp:estimate(cts:search(fn:doc(),
cts:query(
<cts:element-query>
<cts:element xmlns="">data</cts:element>
<cts:and-query>
<cts:word-query>
<cts:text xml:lang="en">,</cts:text>
<cts:option>case-insensitive</cts:option
>
<cts:option>punctuation-insensitive</
cts:option>
<cts:option>unstemmed</cts:option>
</cts:word-query>
<cts:word-query>
<cts:text xml:lang="en">metal</cts:text>
<cts:option>case-insensitive</cts:option
>
<cts:option>punctuation-insensitive</
cts:option>
<cts:option>unstemmed</cts:option>
</cts:word-query>
</cts:and-query>
</cts:element-query>
)))
Thanks & Regards
Abhishek Srivastav
Tata Consultancy Services
Cell:- +91-9883389968
Mailto: abhishek53.s at tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Outsourcing
____________________________________________
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120201/8cf2ac0f/attachment.html
More information about the General
mailing list