Hello,
You can try something like below (assuming DateOfBirth is a date type attribute) -
The following rule has a 2 year threshold for years, 11months threshold for months and 20days threshold for days. Meaning -
02/01/1986 is a match with 11/02/1988 but is not a match with 01/02/1989. You can try adjusting the threshold as per your needs. or you can also try
ExactNumberMatchToken with a BasicStringComparator if you need the years to be in exact match, or have the threshold as 0 for years.
Let me know if this has helped.
{
"uri": "configuration/entityTypes/Individual/matchGroups/Rule1B",
"label": "Fuzzy(DoB)",
"type": "suspect",
"scope": "ALL",
"useOvOnly": "true",
"rule": {
"matchTokenClasses": {
"mapping": [
{
"attribute": "configuration/entityTypes/Individual/attributes/DoB",
"parameters": [
{
"parameter": "groups",
"values": [
{
"classParams": {
"threshold": "2"
},
"pattern": "\\d{4}+",
"className": "com.reltio.match.token.RangeNumericMatchToken"
},
{
"classParams": {
"threshold": "11"
},
"pattern": "\\-(\\d{2})\\-",
"className": "com.reltio.match.token.RangeNumericMatchToken"
},
{
"classParams": {
"threshold": "20"
},
"pattern": "\\-(\\d{2})$",
"className": "com.reltio.match.token.RangeNumericMatchToken"
}
]
}
],
"class": "com.reltio.match.token.CustomMatchToken"
}
]
},
"comparatorClasses": {
"mapping": [
{
"attribute": "configuration/entityTypes/Individual/attributes/DoB",
"parameters": [
{
"parameter": "groups",
"values": [
{
"classParams": {
"threshold": "2"
},
"pattern": "\\d{4}+",
"className": "com.reltio.match.comparator.RangeNumericComparator"
},
{
"classParams": {
"threshold": "11"
},
"pattern": "\\-(\\d{2})\\-",
"className": "com.reltio.match.comparator.RangeNumericComparator"
},
{
"classParams": {
"threshold": "20"
},
"pattern": "\\-(\\d{2})$",
"className": "com.reltio.match.comparator.RangeNumericComparator"
}
]
}
],
"class": "com.reltio.match.comparator.CustomComparator"
}
]
},
"and": {
"fuzzy": [
"configuration/entityTypes/Individual/attributes/DoB"
]
}
},
"scoreStandalone": 10,
"scoreIncremental": 5
}
------------------------------
Ranadip Das
------------------------------