Loading TOC...

MarkLogic Server 11.0 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 
  

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.