Normalizers
Normalizers are the actions performed on the fields based on the operations they are associated with.
These are used to link the Operations with the fields. Every normalizer can contain more than one operation.
There are two types of Work context for normalizers:
Search - the normalizer doesn’t change the field data, instead enables searches for various units of measure
Indexing - the normalizer modifies the data during indexing time and converts all length formats into the format mentioned in the associated operation
Â
To add a normalizer:
Goto Workbench → SIM → Normalizers and click the Add Normalizer button. You will see this screen:
Enter the details of the normalizer and choose the Work Context from the dropdown list.
Click on the Add Operation button
A modal dialog is displayed.
On this dialog, either choose from a template using the dropdown list or add a new operator:
To create a Unit of Measure Operator:
Step 1: Give and name and optionally associate with a tag
Step 2: Select Unit of Measure Operator for the field Type:
Step 3: There are two other dropdown combo boxes displayed upon performing step 1.
For the Unit of Measure Type section, following are the available options - choose the required value.
Step 4: Select the unit of measure you would like to target. An example for length is as follows:
Step 5: Select the number of decimals unit of measure should be rounded to. You can pick to round to anywhere from 1 to 10 decimals. We recommend starting with 2 or 3 and adjusting if necessary:
Â
A complete example of a Unit of Measure Operation Template is as below:
Â
To create a RegEx Operator:
Step 1: Give and name and optionally associate with a tag
Step 2: Select RegEx Operator for the field Type
Step 3: Fill in your desired regular expression to match and replace.
Example:
Here is an example of a normalizer with 1 RegEx step and 3 UOM steps:
Â
Â