Loading TOC...

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

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