Skip to main content

Administrating MarkLogic Server

Configuring Phrasing and Element-Word-Query Settings

To configure element-word-query-through, phrase-through, and phrase-around settings for a particular database, follow these steps:

  1. Click Databases in the left tree menu. A list of databases appears.

  2. Click your target database.

  3. Underneath the target database, click Element-Word-Query-Throughs, Phrase-Throughs, or Phrase-Arounds.

  4. The remainder of this procedure will assume that you have chosen to configure phrase-through settings. If you wish to configure phrase-around or element-word-query-through settings, the steps are completely analogous, once you have clicked on the corresponding icon.

  5. Click the Create tab

  6. In the Namespace Uri field, Enter the URI of the XML element that you are specifying as a phrase-through element.

    Every XML element is associated with a namespace. For the phrase-through setting to be precise, you must specify the namespace of the XML element. Leaving the namespace URI field blank specifies the universal unnamed namespace.

    Alternatively, you can specify that the element is namespace independent by putting an asterisk (*) in the namespace URI field.

  7. Enter the element name in the Localname field.

    The local name is the name of the XML element that you are specifying as a phrase-through element. If you want to specify more than one element that is associated with the specified namespace, you can provide a comma-separated list of element names.

  8. To add more phrase-throughs, click More Items and repeat Step 6 - Step 7 for each phrase-through element as needed.

  9. Scroll to the top or bottom and click OK.

    The new phrase-through is added.

    If you change the element-word-query-through, phrase-through, or phrase-around settings for a particular database after documents have already been loaded, you should reindex your existing data, either by setting the reindexer enable setting to true for that database or by reloading the data.