You are here: Matching and Linking > Matching and Linking Configuration > Configuring Match Codes

Configuring Match Codes

Before configuring match codes there are several things to consider:

For more information on match codes, see the Matching and Linking Components section of the Matching and Linking documentation here.

For more information on data profiling, see the Data Profiles section of the Data Profiling documentation here.

Configuration

  1. In System Setup, right-click the node configured to house match codes and select 'New Match Code'.

  1. In the 'Create Match Code' dialog, define an ID and name for the match code, specify an object type for which this match code applies, and click Create. Additional object types can be identified in the Match Code editor (see details below).

  1. On the new Match Code editor, navigate to the 'Match Code' tab and click the ellipsis button (…) in the 'Category' field. In the selector that appears, select a node to indicate which objects will have match codes generated.

  1. In the 'Match Code Window Size' field, specify the window size to be used by the matching algorithm.
  2. If additional object types are required, in the 'Used For Object Types' section, use the Add Object Type link and selector to identify more object types for the match code.
  3. In the 'Match Code Context' field, specify in which context to run the match code formula. This is only required if the data is dimension dependent.
  4. In the 'Match Code Workspace' field, specify in which workspace to run the match code formula.
  5. In the 'Match Code Formula Type' field, specify 'Java Script' or 'Calculated' as the format
  6. In the 'Match Code Formula' field, then click the ellipsis button (…) to open up the formula editor and add your match code formula.

Binds for Match Code Formulas

It is also possible to make use of attributes and values that are created offline, by binding them in the match code formula. This is used in cases of offline matching or matching records on import. Once inside the 'Match Code Formula' editor, open the 'Binds' flipper, and click the 'Edit Binds' button. You can declare variables and bind them to a variety of STEP elements / objects, as determined by the selected formula type.

JavaScript Match Code Formula

When using JavaScript, the current object should be bound to a variable. The ultimate goal should be to return the match code value of an object from the JavaScript. If a string is returned, it will be used as a match code value. If a JavaScript array is returned, all values in the array will be used as match code values for that object. Additional utility functions for match codes can be accessed by binding 'Matching Functions' to, for example, the context variable in JavaScript or by binding 'Lookup Table Home' to, for example, 'lth':

Method

Description

context.soundex('Stibo')

Returns the Soundex. For more information, see Text Functions in the Calculated Attributes documentation here.

context.metaphone3('Stibo')

Returns the primary value for the Metaphone 3. For more information, see Text Functions in the Calculated Attributes documentation here.

context.metaphone3alternate('Stibo')

Returns the alternate value for the Metaphone 3. For more information, see Text Functions in the Calculated Attributes documentation here.

lth.getLookupTableValue('<asset-id>', 'LookupValue')

Returns the converted value from asset-id lookup table. If this is not found, it returns 'LookupValue'. For more information, see the Creating a Transformation Lookup Table section of the Data Quality documentation here.

Calculated Attribute Match Code Formula

When defining the formula via the calculated attribute language, all functions are available. An object's match code value can be a single string derived from the value of the formula, or it can be a list where all the values in the list are used as match code values for that object. For more information on the available STEP functions, see the Calculated Attribute Functions section of the System Setup / Super User Guide documentation here.

2017, Stibo Systems