thsr:lookup( $uri as xs:string*, $term as xs:string, [$output-kind as xs:string] ) as item()*
Returns all entries for term $term in the thesaurus document(s) at $uri.
thsr:lookup("/myThsrDocs/thesaurus.xml", "weary") => returns the thesaurus entry for the term "weary"
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.