
thsr.removeEntry( uri as String[], entry as element(thsr.entry)|Object ) as null
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. |
const thsr = require("/MarkLogic/thesaurus");
declareUpdate();
thsr.removeEntry("/myThsrDocs/roget.xml",
thsr.lookup("/myThsrDocs/roget.xml","Car")[2])
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.