MarkLogic 10 Product Documentation
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

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

  thsr.removeEntry("/myThsrDocs/roget.xml", 
            thsr.lookup("/myThsrDocs/roget.xml","Car")[2])
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy