thsr.queryLookup( $uri as String, $query as cts.query, [$output-kind as String] ) as ValueIterator
Returns a ValueIterator of all entries that are found by looking up terms in the query and/or subqueries of $query in the thesaurus document(s) at $uri.
|$uri||The URI of the thesaurus document(s).|
A cts.query item from any of the
The kind of the returned items. If "elements", xml elements are
The default value is "objects".
var thsr = require("/MarkLogic/thesaurus"); thsr.queryLookup("/myThsrDocs/thesaurus.xml", cts.wordQuery("weary")) => returns the thesaurus entry for the term "weary"