Loading TOC...

thsr.removeSynonym

thsr.removeSynonym(
   $entry as element(thsr.entry),
   $synonym as element(thsr.synonym)|Object
) as null

Summary

Removes synonym $synonym from thesaurus entry $entry.

Parameters
$entryA thesaurus entry.
$synonym A synonym to be removed from a thesaurus entry, can either be an xml element or javascript object.

Example

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

  thsr.removeSynonym(thsr.lookup("/myThsrDocs/roget.xml", 
                               "car")[1],
                 {"term":"Fiat"})
  

Comments

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