
thsr:remove-term( $uri as xs:string*, $term as xs:string ) as empty-sequence()
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. |
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