Hi ,
My query fetches uri's for those documents which checks meta:Country value
and then produces the result.
For Eg. in the query mentioned below the meta:Country value is China. Now
the issue is that the DB has values like:
1. 'Chin',
2. '(China);'
3. ' (China)'
4. 'China'.
5. '[space]China'
6. 'China>'
But every time it gives the same result count along with the same set of
URI's. Please suggest what should i change in the query so that i get the
desired result .
let $options := ('exact')
let $uri :=cts:uris('', ('document','limit=500000000'),
(cts:and-query((cts:directory-query('/content/', 'infinity'),
cts:element-value-query(xs:QName('meta:Country'), '
China',$options)), ())), (), ())
return (count($uri))
Altogether, I need some option in cts:query to match the value matching
regular expression.
regards,
Jaspreet
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general