
cts:contains( $nodes as item()*, $query as cts:query ) as xs:boolean?
Returns true if any of a sequence of values matches a query.
cts:contains(//PLAY
[TITLE="The Tragedy of Hamlet, Prince of Denmark"]
/ACT[3]/SCENE[1],
cts:word-query("To be, or not to be"))
=> ..true, if ACT II, SCENE I of Hamlet contains
the phrase "To be, or not to be" (it does).
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.