Loading TOC...

thsr.removeEntry

thsr.removeEntry(
   $uri as String[],
   $entry as element(thsr.entry)|Object
) as null

Summary

Removes all entries that exactly match $entry from the thesaurus documents(s) at $uri.

Parameters
$uri The URI of the thesaurus document(s).
$entry A thesaurus entry, can either be an xml element or javascript object.

Example

var thsr = require("/MarkLogic/thesaurus");
declareUpdate();

  // removes the second "Car" entry from the thesaurus document
thsr.removeEntry("/myThsrDocs/wordnet.xml", 
           fn.subsequence(thsr.lookup("/myThsrDocs/wordnet.xml","Car"), 2, 1));
  

Comments

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