Generate Tokens for the Specified Strings
This API allows you to generate match tokens for the specified strings.
You must have the MDM.Config.BusinessModel
resource assigned with the
READ
privilege.
Request
POST /reltio/tools/matching/matchTokens
Body - when fuzzy operator is false
{
"fuzzy": false,
"values": [
"100 Marine Pkwy #275, Redwood City, CA 94065"
],
"matchTokenClass": {
"class": "com.reltio.match.token.AddressLineMatchToken"
}
}
The body contains a matchTokenClass
field which you can copy from your
L3 configuration.
Response
[
{
"tokens": [
"ca-city-marine-pkwy-redwood",
"ca-city-marine-redwood"
],
"value": "100 Marine Pkwy #275, Redwood City, CA 94065",
"total": 2
}
]
Request
POST /reltio/tools/matching/matchTokens
Body - when fuzzy operator is true
{
"fuzzy": true,
"values": [
"100 Marine Pkwy #275, Redwood City, CA 94065"
],
"matchTokenClass": {
"class": "com.reltio.match.token.AddressLineMatchToken"
}
}
Response
[
{
"tokens": [
"K-MRN-RTWT-ST",
"K-ST-MRN-PKWY-RTWT"
],
"value": "100 Marine Pkwy #275, Redwood City, CA 94065",
"total": 2
}
]
fuzzy=true
in matching when the fuzzy operator is used. In
other cases (exact
, exactOrNull
, and so on), use
fuzzy=false
. The difference between these two outputs is that the
fuzzy=true
uses the Metaphone
match token class to
create the token. This behavior might be different for other match token classes.