I have recently started working on MarkLogic 10 Database
What I need to do is find the documents who have id like
wew35r-ui856-iiu
When I query like this
cts:element-value-match(xs:Qname("id"),".*\-.*")
I get 0 results
but when I do
fn:matches("wew35r-ui856-iiu",".*\-.*")
It return true
And surprisingly when I do
cts:element-value-match(xs:Qname("id"),"*")
I get whole list which includes wew35r-ui856-iiu as well.
I had looked into the documentation and all but was not able to make it work.