Generate Tokens for Specified Strings with Multi Operand
This API allows you to generate match tokens for the specified strings with multi operand.
You can use this API to calculate match tokens for a specified string when the
multi operator is used specify multiple values for the compared
objects.
You must have the MDM.Config.BusinessModel resource assigned with the
READ privilege.
Request
POST /reltio/tools/matching/matchTokens/multi
Body
{
"matchTokenClasses": [
{
"attribute": "configuration/entityTypes/Individual/attributes/VirtualName",
"class": "com.reltio.match.token.CrossMultiToken"
},
{
"attribute": "configuration/entityTypes/Individual/attributes/FirstName",
"class": "com.reltio.match.token.ExactMatchToken",
"parameters": []
},
{
"attribute": "configuration/entityTypes/Individual/attributes/LastName",
"class": "com.reltio.match.token.ExactMatchToken"
}
],
"multi": [
{
"uri": "configuration/entityTypes/Individual/attributes/VirtualName",
"attributes": [
"configuration/entityTypes/Individual/attributes/FirstName",
"configuration/entityTypes/Individual/attributes/LastName"
]
}
],
"values": {
"configuration/entityTypes/Individual/attributes/FirstName": "William",
"configuration/entityTypes/Individual/attributes/LastName": "Smith"
}
}
Response
[
{
"tokens": [
"Smith:William"
],
"total": 1
}
]
Body - When the geo version of multi operand is used.
{
"matchTokenClasses": [
{
"attribute": "configuration/entityTypes/Individual/attributes/Geo",
"class": "com.reltio.match.token.ProximateGeoToken",
"parameters": [
{
"parameter": "distance_miles",
"value": "0.4"
}
]
}
],
"multi": [
{
"uri": "configuration/entityTypes/Individual/attributes/Geo",
"attributes": [
"configuration/entityTypes/Individual/attributes/Latitude",
"configuration/entityTypes/Individual/attributes/Longitude"
]
}
],
"values": {
"configuration/entityTypes/Individual/attributes/Latitude": 10,
"configuration/entityTypes/Individual/attributes/Longitude": 20
}
}
The body contains a matchTokenClass field, which you can copy from your
L3 configuration.
Response
{
"tokens": [
"988:1975",
"988:1974",
"987:1974",
"o987:1975",
"987:1975"
],
"total": 5
}