I've tested the below match rule which generates a positive match on records with the same 7 characters at the end of an account number. You should be able to change the regex to "^\\w{3}", but I have not tested it.
You can actually test and see the match tokens which will be generated by a configuration without deploying it using this API / tool:
https://developer.reltio.com/private/swagger.htm?module=Data%20Operation#/Match/generateMatchTokens
{
"uri":"configuration/entityTypes/CustomerOrganization/matchGroups/Right7AccountNumber",
"label":"Exact Right(Account Number,7)",
"type":"suspect",
"useOvOnly":"false",
"rule":{
"exact":[
"configuration/entityTypes/CustomerOrganization/attributes/AccountNumber"
],
"matchTokenClasses":{
"mapping":[
{
"attribute":"configuration/entityTypes/CustomerOrganization/attributes/AccountNumber",
"parameters":[
{
"parameter":"groups",
"values":[
{
"pattern":"\\w{1,7}$",
"className":"com.reltio.match.token.ExactMatchToken"
}
]
}
],
"class":"com.reltio.match.token.CustomMatchToken"
}
]
},
"comparatorClasses":{
"mapping":[
{
"attribute":"configuration/entityTypes/CustomerOrganization/attributes/AccountNumber",
"parameters":[
{
"parameter":"groups",
"values":[
{
"pattern":"\\w{1,7}$",
"className":"com.reltio.match.comparator.BasicStringComparator"
}
]
}
],
"class":"com.reltio.match.comparator.CustomComparator"
}
]
}
},
"scoreStandalone":15,
"scoreIncremental":30
}
------------------------------
Dan Gage
Principal Solution Consultant
------------------------------
Original Message:
Sent: 10-13-2021 08:16
From: Trond Stangeland Lie
Subject: Help on Creating a Matchrule in console UI (advanced editor)
Hi,
I am trying to construct/create a matchrule through the console using Datamodeler UI.
What I want to achieve is to have a matching rule that compare the three first characters of entities attribute "name".
Based on an exact match for these three letters/characters if true they should be flagged as potential mathces if not they should not be visible in potential matches facet.
example:
------------------------------
Trond Stangeland Lie
Equinor
SANDNES
------------------------------