Skip to main content

Administrating MarkLogic Server

Creating an Amp

To create an amp, follow these steps:

  1. Click Security in the left tree menu. A list of security items appears.

  2. Click Amps.

  3. Click on the target amp.

  4. Click the Create tab.

  5. Enter the local name of the function (without parentheses) in which the amp takes effect. For example: my-function.

  6. Enter the namespace in which the function is defined.

  7. Enter the document URI for the document in which the function is defined. This document URI must begin with a forward slash (for example, /amped-functions.xqy). The specified document must be placed in the Modules directory within the installation path. For example, if /mydir/my-amps.xqy is specified in the document uri, my-amps.xqy must be placed in installation-directory/Modules/mydir.

  8. In the Database field, select the database where the function is stored. If the function is stored in the Modules directory on the filesystem, set the database to (filesystem) (which is the default value).

  9. Under the Roles section, select the additional roles that will be given to the user while the user is executing the function.

  10. Click OK.

The amp is now added to the security database.