Problem
_verifyMatchesshows that a match rule matches two profiles (matchedByDocumentsistrue).- The profiles aren't potential matches in the Reltio UI or in the Potential matches API (
_matches). - Rebuilding the match tables doesn't change the result.
Cause
Reltio finds potential matches in two stages. A match rule first builds token phrases from its attributes, and profiles that share a phrase become candidates. Only then does Reltio evaluate the rule's comparison formula on each candidate pair.
_verifyMatches evaluates the comparison formula directly on the two profiles, so it can show a match for a pair that is never found as candidates. This happens when every token phrase the pair shares is overcollisioned: a token phrase can be linked to at most 300 profiles, and a phrase shared by more profiles is skipped as too common.
It typically happens when a rule tokenizes only a common attribute, such as a last name. An attribute doesn't produce tokens when it's listed in the rule's ignoreInToken, or when it's compared with exactOrNull or notExact.
Diagnose
Verify the pair using the stored match data. {TenantURL} is https://<environment>.reltio.com/reltio/api/<tenantId>.
POST {TenantURL}/entities/_verifyMatches?rules=configuration/entityTypes/<EntityType>/matchGroups/<MatchRule>&show=full&documentsFromDatabase=true
Authorization: Bearer <access_token>
Content-Type: application/json
{ "first": { "uri": "entities/<entityId1>" }, "second": { "uri": "entities/<entityId2>" } }This issue applies when, for the rule:
matchedByDocumentsistrue, butmatchTokens.intersectionis empty ({}).matchTokens.intersectionlists token phrases when you resend the request with&checkOvercollisionedTokens=false.- In the
rulesection, only the common attribute shows"ignoreInToken": false.
Solution
- Change the rule so that its tokens include at least one selective attribute, such as an identifier, usually by removing it from
ignoreInToken. The attribute must be compared withexactorfuzzy. - Run Rebuild Match Tables for the entity type. To test the change first, rebuild only the affected profiles:
POST {TenantURL}/rebuildmatchtable
Authorization: Bearer <access_token>
Content-Type: application/json
["entities/<entityId1>", "entities/<entityId2>"]Verify
Repeat the _verifyMatches request. matchTokens.intersection lists at least one token phrase, and GET {TenantURL}/entities/<entityId1>/_matches returns the second profile.
Comments
Article is closed for comments.