CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
Pages: [1]

Author Topic: Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?  (Read 2013 times)

jsherk

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 0
Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
April 29, 2010, 01:55:21 pm
I am wondering if the logic behind Fuzzy and Strict are actually different or are they the same?

If I setup identical rules in both of them, will they find the exact same matches or will there be some kind of difference?

Do they use different code for checking or the same code?

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
April 29, 2010, 02:06:58 pm
I think you can find the answer to that here http://en.flossmanuals.net/CiviCRM/DedupingAndMerging Each type of rule has a different "definition of what constitutes a match" so no, they will not necessarily return the same results.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

jsherk

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 0
Re: Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
April 29, 2010, 02:28:53 pm
It says this:
"Fuzzy rules are configured with a looser definition of what constitutes a match because they are used in instances where human intelligence can be applied to decide whether a match is accurate or not;"

That would lead me to believe that the underlying CODE is actually different.

But is this 'looser definition' just referring to how the default fields/weights are set up?

If the code is the same, then the ONLY difference between Fuzzy and Strict is which fields and weights and threshold you choose.

It also says:
"Default fuzzy rules are automatically used to check for possible duplicates when contacts are added or edited via the CiviCRM user interface."

This partially incorrect, because when you use the API (and I think Profiles too) it uses the Strict default rule, not the Fuzzy!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
April 29, 2010, 07:42:46 pm

yes, you are right in that the ONLY difference between Fuzzy and Strict is which fields and weights and threshold you choose.

from our perspective, using the API constitutes using it in an automated manner (i.e. we have no idea who's calling the api and from where etc) and hence the strict rule is used

would be good to allow folks to specify what dedupe rule to use for any operation, but thats a project for the future or a contribution from the community that is waiting to happen :0

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jsherk

  • I post occasionally
  • **
  • Posts: 82
  • Karma: 0
Re: Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
April 29, 2010, 08:01:05 pm
Ok thanks... just making sure I understand correctly!

I will be modifying our installation to allow for profiles to choose the dedupe rule they want, and I also want to add a pre_dedupe hook so I can write my own duplicates matching code ... I will definitely contribute it back once I get it working properly.

Thanks

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?
August 14, 2010, 04:40:45 am
Hi, any progress on that one ?

Did you come up with some code ?

We got another discussion running recently on that topic recently (well, it was about fussy & strict ;) :

http://forum.civicrm.org/index.php?topic=14956.0

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Is there any 'logic' difference between Fuzzy & Strict duplicate checking rules?

This forum was archived on 2017-11-26.