MarkLogic 10 Product Documentation
thsr.removeTerm

thsr.removeTerm(
   uri as String[],
   term as String
) as null

Summary

Removes all entries with term $term from the thesaurus document(s) at $uri.

Parameters
uri The URI of the thesaurus document(s).
term A term to remove from the thesaurus.

Example

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

  thsr.removeTerm("/myThsrDocs/roget.xml", "Car")

   => removes all entries for "Car" from the thesaurus with the 
      specified URI 
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy