Sub topic 4
Exact versus fuzzy matching
This chapter assumes you know what a matching rule is and can open one in Setup. It covers the two comparison methods you choose for each field in a matching equation.
What each method does
A matching rule compares a field on the incoming record with the same field on existing records. For each field you choose a matching method.
- Exact treats two values as a match only when they are identical. Case differences are ignored, so
ACMEmatchesacme. A single extra character, such asJonversusJohn, is a mismatch. - Fuzzy treats two values as a match when they are similar enough. Salesforce's algorithms handle spelling variants, nicknames, abbreviations and word order.
Joncan matchJohn,Billcan matchWilliam, andAcme Corpcan matchAcme Corporation.
| Aspect | Exact | Fuzzy |
|---|---|---|
| Typo `Smyth` vs `Smith` | No match | Can match |
| Nicknames and abbreviations | No match | Can match |
| False positives | Few | More likely |
| Missed duplicates | More likely | Fewer |
| Fields supported | All supported field types | Only some standard fields |
Where fuzzy is available
Fuzzy matching is not available on every field. It applies mainly to standard text fields such as first name, last name, company name, title, street and city. Custom fields and fields such as email use exact matching. Check the method list for each field when you build the rule.
Choosing a method
Use exact matching for identifiers that should never vary, such as email addresses or an external ID. A near miss on an email usually means a different person. Use fuzzy matching for fields people type by hand, such as names and company names, where variation is common.
A good pattern combines both in one equation:
- Fuzzy first name AND fuzzy last name AND exact email: strict, with few false positives.
- Fuzzy last name AND fuzzy company name: broader, and useful for catching duplicates when email is missing.
Common errors
- Using fuzzy on everything. Users then see alerts for records that merely look alike, and they start ignoring alerts.
- Expecting exact to be forgiving. Exact matching will not ignore extra spaces or punctuation in the stored value, so imported data with inconsistent formatting can slip through.
- Expecting blanks to match. By default, two blank values do not count as a match. Blank handling is covered in the matching equation chapter.
Exercise
Your sales team enters company names by hand, but each contact's email comes from a web form. Which method would you pick for company name and for email, and why?
Show answer
Use fuzzy for company name, because hand-typed names vary (Acme Corp, Acme Corporation, ACME Inc). Use exact for email, because a web-form email is consistent, and a near match usually belongs to a different person.