[MarkLogic Dev General] Difference between two queries
Rahul Saluja
rahul.saluja at gmail.com
Mon Oct 12 12:25:33 PDT 2009
hello all,
i am in a flux to understand whats the difference between following two
queries
fn:doc(xdmp:node-uri(
cts:search(//books,cts:and-query((cts:element-word-query(xs:QName("title"),"human"
, ("wildcarded", "case-insensitive")),cts:element-word-query
(
xs:QName("status"),"Unavai* " ,
("wildcarded", "case-insensitive")
)
))
)))//book/@year=2002
returns TRUE
AND
fn:doc(/documents/book2)//book/@year=2002
Returns FALSE
Argument to first query also returns the uri of document which satisfies the
search criteria whereas when i pass this Uri by myself it returns false.
please reply.
regards
Rahul Saluja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20091013/e8c58250/attachment.html
More information about the General
mailing list