MarkLogic 9 Product Documentation
thsr:lookupthsr:lookup(
$uri as xs:string*,
$term as xs:string,
[$output-kind as xs:string]
) as item()*
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 "elements".
|
Example
thsr:lookup("/myThsrDocs/thesaurus.xml", "weary")
=> returns the thesaurus entry for the term "weary"
Copyright © 2024 MarkLogic Corporation. MARKLOGIC is a
registered trademark of MarkLogic Corporation.