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. Click Databases in the left tree menu. A list of databases appears.

  2. Click your target database.

  3. Under the database in which you want to create the field, click Fields.

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

  5. Enter a name for the field.

  6. For field type, select metadata.

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

  8. 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.

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

  10. 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 items in the Index Settings section. 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.