Loading TOC...

thsr.load

thsr.load(
   $path as String,
   $uri as String
) as null

Summary

Load the file specified in $path to the thesaurus at $uri. Exisiting documents at $uri are overwritten.

Parameters
$path The path to a file containing thesaurus entries.
$uri The URI of a thesaurus document.

Usage Notes

If $path contains XML that does not conform to the thesaurus schema, an error is raised.

Example

  var spell = require("/MarkLogic/thesaurus");
  declareUpdate();
  
  thsr.load("c:\thesaurus\roget.xml", "/myThsrDocs/roget.xml")
  

Comments

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