Skip to main content

Administrating MarkLogic Server

Configuring a New Metadata Field

Use the Admin Interface to add a new metadata field configuration to a database:

  1. Navigate to and click the database for which you want to create a field, either from one of the summary tables or in the left tree menu.

  2. Under the database in which you want to create the field, click the Fields link. The Field Summary page appears.

  3. Click the Create tab. The Create Field in Database page appears.

  4. Enter a name for the field.

  5. For field type, select metadata.

  6. If you want to add a word lexicon for the field, enter the collation URI next in the add text box. The URI for the UCA Default Collation, http://marklogic.com/collation/, is useful for many applications. For details on collations, see the Language Support in MarkLogic Server in the Search Developer’s Guide. Click OK to add the field word lexicon (if you want to create one). If you want to create other field word lexicons with different collations, repeat this step specifying a different collation URI for the new lexicon.

  7. [OPTIONAL] Create any Field Range Indexes or Tokenizer overrides. You can also go back and add these later.

    Note

    Creating a Range Index automatically configures a Field Range Index on the field being created or updated.

  8. If you want the field to include any extra index options from the database, or if you want to remove some index options from the field, check or uncheck those index settings. Index settings shown in bold indicate the setting is inherited from the database setting. You can uncheck an inherited index setting to not inherit the setting from the database-level configuration. For details, see Understanding the Index Option Configuration.

Note

The field value positions, trailing wildcard word positions, and three character word positions options can be set, but they will have no effect on queries.