> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Type-specific properties of the Key value element

> Configure the Key value search element to find labeled fields — define secondary element (label), primary element (value), and the gap between them.

The **Key value** element has the following properties in the **What to search for** section:

## Secondary element properties

* **Text to find** specifies the static text.
* **Allow multiple lines** allows/disallows multi-line text.
* **Allowed errors** specifies the maximum recognition error percentage.
* **Gap between key and value** allows/disallows gap between secondary and primary element.

For more information about the **Text to find** and **Allow multiple lines** properties, see the description of similar properties for the [Static Text element](/vantage/documentation/advanced-designer/activities/extraction-rules/static-text).

## Primary element properties

* **Position** specifies the position of the element relative to the static text.
* **Type** specifies the type of element being searched for. Depending on the selected type, other specific element properties become available:
  * **Any Text**: has no special properties.
  * **Allowed Values**: identical to Static Text.
  * **Number**: **Can be negative** bool (specifies whether negative values are permitted); **Can be fractional** bool (specifies whether non-integers are permitted).
  * **Amount of Money**: **Currency** (specifies the permitted currency values).
  * **Date**: **Date format** (specifies the date format); **From** and **To** (specify an interval for the date).
  * **Phone**: **Number of digits** (specifies the minimum and maximum number of characters in a telephone number).
  * **Character String**: identical to Character String.

## Advanced properties

* For the primary element of type **Number**, there is additionally a **Value** property, which allows specifying the range of possible values. Possible values range from -2147483648 to 2147483647.
* For the primary element of type **Date**, there is additionally a **Max. space length** property, which allows specifying the maximum length of the space inside the detected object.
* **Take spaces into account** allows spaces in the search string. If this option is not selected, spaces will be removed from the search string. Ignoring spaces makes the search faster. However, if the phrase you are searching for may be split over multiple lines or if some words in the phrase may be missing, you need to enable the Take spaces into account option and type in your search phrase preserving the spaces.
* **Allow missing words** allows missing words in the phrase and allows setting a penalty for missing words. The penalty is a number from 0 to 1. The quality of the hypothesis will be multiplied by this number as many times as there are missing words in the phrase. If some words may be absent in the phrase, set this parameter to 1 (multiplying the quality of the hypothesis by 1 will not downgrade its quality).
* **Max. space length** allows specifying the maximum length of the space inside the detected object.
* **Search for parts of words** specifies whether the hypothesis should include word parts contained only partially within the search area. Disable this option if you need to exclude word fragments from the hypothesis.
* **Match case** enables case-sensitive search, making the program distinguish between small and capital letters.
* **Min. space b/w key and value** specifies the minimum space between the secondary and the primary element. This option is available only if **Gap between key and value** is enabled.
* **Use white gap to detect spaces**. This option is available only if **Gap between key and value** is enabled.
* **Search area** specifies the width and height of the search area (in user-defined units of measurement).

To display advanced properties, click the advanced mode icon on the **Properties** pane.
