Skip to main content

Administrating MarkLogic Server

Defining Namespace Prefixes Used in Path Range Indexes and Fields

When you define a path range index over XML documents and your path uses namespace prefixes, you must pre-define any namespace bindings used in the path expression. These namespace bindings can be used by multiple path range indexes.

To define a namespace binding, follow these steps:

  1. Click the Databases icon on the left tree menu.

  2. Locate the database for which you want to create a namespace prefix binding, either in the tree menu or in the Database Summary table.

  3. Click the name of the database for which you want to create a namespace binding.

  4. Click the Path Namespaces icon in the tree menu, under the selected database.

  5. Click the Add tab. The Path Namespaces Configuration page appears:

    path_namespaces_v10.gif
  6. In the Prefix field, enter the namespace prefix you intend to use for the element or attribute in the XPath expression in your path range index.

  7. In the Namespace URI field, enter the namespace URI of the XML element or attribute in the XPath expression.

  8. Click OK.