Field Definition Restrictions

Introduction

Field definitions are sent to our search platform Apache Solr and hence must adhere to certain requirements in addition to our own business logic.

Key restrictions

Creating field definitions having a certain key, or saving metadata with a dynamic key, has the following restrictions on that key.

  1. Forbidden patterns (case insensitive): Global, searchtextplaceholder, *_lc, *_thesaurus, *_orig, *_index

  2. Must adhere to the regular expression [a-zA-Z0-9_-]+

Creating or saving a record with one or more invalid key names will also throw an error.

Type restriction

Creating a dynamic field definition of the type ComplexField is not allowed.

Changing standard field definitions

Changing the standard field definitions from Metadata Fields has been restricted to only the following operations

To further prevent these keys from being used, the metadata validation has been made stricter. Trying to create or save a record with one or more invalid key names will throw an error.

For existing records with invalid keys, a standard migration has been provided that deletes such fields.

Child field definitions Restrictions

The following properties are for child field definitions always the same as the top field definition

  • Index name

  • Family