Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-101

Improve Name Matching Algorithm for Contact Search

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0
    • Component/s: None
    • Labels:
      None

      Description

      The contact sort_name matching algorithm has been improved to make it easier and more forgiving to find individuals by last AND first name.

      The new algorithm splits the search string on spaces and adds % to front and back of each slice and looks for slice A OR slice B (OR slice C...). The exception to this is when comma is found at end of first slice - in which case % is added to front and back of the entire string.

      EXAMPLES:
      'rob gree' - matches on %rob% OR %gree%
      'green, r' - matches on %green, r%

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: