thsr.lookup( $uri as String, $term as String, [$output-kind as String] ) as ValueIterator
Returns all entries for term $term in the thesaurus document(s) at $uri.
|$uri||The URI of the thesaurus document(s).|
|$term||A term to lookup in the thesaurus.|
The kind of the returned items. If "elements", xml elements are
The default value is "objects".
var thsr = require("/MarkLogic/thesaurus"); thsr.lookup("/myThsrDocs/thesaurus.xml", "weary") => returns the thesaurus entry for the term "weary"