Example 2 - Using a Custom Comparator and Token Class
This example provides information about how to use a custom comparator.
Please review the example match rule configuration below. It has the following characteristics:
- Uses a custom comparator class and custom match token class for the Organization Name.
- Uses the
DistinctWords
comparator andDistinctWords
match token class as the basis for the custom classes. - Notice the symmetry of how the comparator and match token classes are defined.
- Uses the Stemmer and Soundex functions within the custom classes.
- Uses a custom noise words dictionary.
- Uses exact match on five attributes, and fuzzy on one attribute.
- Only operates on profiles where the address type =
Shipping
- Only operates on profiles where the
OrgJourneyStatus
is notGeneric Account
orHouse Account
. - Uses
ignoreInToken
to suppress tokenization on four attributes as they are deemed not helpful for identifying match candidates - Unnecessarily uses
ExactOrNull
andExactOrAllNull
together. Only one of them should have been used.