I'm curious what you meant by "for more precision," below. Does cts:contains potentially return something different here?

-Mike

let $q := cts:word-query("stephane") (: "stephane" is a shorthand for this word query :)

return cts:search(/doc, $q)//author[cts:contains(., $q)]

For more precision, you may also use cts:element-query(xs:QName("author"), cts:word-query("stephane")).

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to