Using String Function Cleanser and Address Cleanser together
Learn how to combine the StringFunctionCleanser and the AddressCleanser.
You may use the StringFunctionCleanser
and the AddressCleanser
one after the other. Here's an example of how the two cleansers work together when you configure the string cleanser before the address cleanser:
Sample Address
First, the StringFunctionCleanser
removes special characters. Then, the AddressCleanser
standardizes and verifies the address against geolocation data.
Address Output after Applying the String Cleanser
Applying the StringFunctionCleanser
to the sample address produces this output:
Address Output after Applying the Address Cleanser
Applying the AddressCleanser
to the address, after the string cleanse, produces this output:
Recommendation
To achieve the desired result, we recommend you use different resultingValuesSourceTypeURI
(crosswalk) for StringFunctionCleanser
and AddressCleanser
in cleanseConfig
. For example:
String and address cleanser parameters
Here's a table that explains how the configuration in cleanseConfig
works:
Cleanse Configuration Parameter | Description |
---|---|
"resultingValuesSourceTypeUri": "configuration/sources/StringCleanser" | The StringCleanser crosswalk is used for string cleansing. The output obtained is the address cleansed for the special characters by the StringFunctionCleanser . |
"resultingValuesSourceTypeUri": "configuration/sources/ReltioCleanser" | The ReltioCleanser crosswalk uses the cleansed value from the StringCleanser crosswalk as the source. The AddressCleanser further cleanses the entire address for verification and Geo-location. |
AddressCleanser
before applying the StringFunctionCleanser
, place the AddressCleanser
first in the config sequence, followed by the StringFunctionCleanser
. We recommend configuring the first cleanser in the chain with proceedOnSuccess
set to true and proceedOnFailure
set to false. This ensures the process continues only if the first cleanser succeeds, preventing errors from affecting subsequent cleansing steps..