MarkLogic Server 11.0 Product Documentation
thsr:remove-term

thsr:remove-term(
   $uri as xs:string*,
   $term as xs:string
) as empty-sequence()

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

  xquery version "1.0-ml";
  import module namespace 
	thsr="http://marklogic.com/xdmp/thesaurus" 
                             at "/MarkLogic/thesaurus.xqy";

  thsr:remove-term("/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