General Information

You can create and configure entity/lookup entity attributes in the “Attributes” tab.

Entity Attribute Types

  • Simple. An attribute that contains a single value. It can have different types: string, date, enumeration, etc.

  • Complex. An attribute that contains a number of attributes, either Simple or Array.

  • Array. An attribute that contains multiple values. It can have different types: string, date, enumeration, etc.

Entity must contain:

  • At least 1 attribute of the “simple” type.

  • Main display attribute.

  • Search attribute.

  • At least 1 main displayed attribute must be of the first level (not part of the complex).

  • Entity attribute requirements can be met in a single attribute.

Lookup Entity Attribute Types

  • Code. An attribute that contains the value of the reference code. Used to identify a record in the lookup entity. Must be unique.

  • Alternative code. Similar to code, it is used to identify a record. However, it can also be used for other purposes.

  • Simple. An attribute that contains a single value. It can have different types: string, date, enumeration, etc.

  • Array. An attribute that contains multiple values. It can have different types: string, date, enumeration, etc.

Lookup entity must contain:

  • At least 1 attribute of the “code” type.

  • Main display attribute.

  • Lookup entity attribute requirements can be met in a single attribute.

Morphology-Based Search Setup

Note

Morphological search works by using the required Elasticsearch plugin

Search allows you to search for the values of string attributes in all grammatical forms and return all the found variants of the search query in the results. For example, the search query “string” will return attributes with the values: string, strings, and so on.

The search takes into account words and phrases in English and Russian.

Available attribute type:

  • Simple attribute (string);

  • Simple attribute (string) as part of a complex attribute;

  • Array-attribute (string).

Morphology-based search is configured for each attribute separately.

Attributes must be specified as participating in the search. To do this, in the “Attributes” tab, put the value of the “Morphological search” field as “yes” after specifying the attribute type as “string”.

Attributes specified as participating in the morphological search will become available for morphological search in the “Data” section.

Tip

It is recommended to set up a morphological search before creating (or importing) data into the data model you are creating. Otherwise, the morphological search may fail, since Unidata MDM currently has no mechanism for re-creating Elasticsearch indexes.

Entering Data by Mask

If the “Mask” parameter is active and the data format is specified, each user entering data must follow the specified rule.

The mask for attribute values is implemented by data processing functions and data quality rules that apply these functions.

To set a mask, you can use:

  • Regular regexp expression.

  • Simplified mask syntax.

To set a mask by regexp, use the official documentation https://github.com/sanniassin/react-input-mask.

Table 1. Characters that define the data entry mask

Character

Description

9

User can only enter numeric values (0-9)

L

User can enter any letters in upper case (A-Z, А-Я)

I

User can enter any letters in lower case (a-z, а-я)

A

User can enter any letters and numbers (A-Z, А-Я, a-z, а-я, 0-9)

When you set a mask, all symbols listed in the table are symbols to be filled. All other characters will be decorators. The decorator characters are not editable characters and do not participate in a regular expression (in the example +7(999)999-99-99, the decorators would be “+”, “(“, “)”, “-“). You can also use letters as decorators (excluding the ones listed in the table).