Loading TOC...

thsr.lookup

thsr.lookup(
   $uri as String[],
   $term as String,
   [$output-kind as String]
) as Sequence

Summary

Returns all entries for term $term in the thesaurus document(s) at $uri.

Parameters
$uri The URI of the thesaurus document(s).
$term A term to lookup in the thesaurus.
$output-kind The kind of the returned items. If "elements", xml elements are returned; if "objects", javascript objects are returned.

The default value is "objects".

Example

  var thsr = require("/MarkLogic/thesaurus");
  
  thsr.lookup("/myThsrDocs/thesaurus.xml", "weary")
   => returns the thesaurus entry for the term "weary"
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy