Loading TOC...

MarkLogic 10 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 
   
  

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