thsr.lookup( uri as String[], term as String, [output-kind as String] ) as Sequence
Returns all entries for term $term in the thesaurus document(s) at $uri.
const thsr = require("/MarkLogic/thesaurus"); 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.