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%