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();

  thsr.removeEntry("/myThsrDocs/roget.xml", 
            thsr.lookup("/myThsrDocs/roget.xml","Car")[2])
  

Comments

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