md-systems / crm_core

Drupal 8 port of the CRM Core module
https://www.drupal.org/project/crm_core
11 stars 10 forks source link

13: Return match quality result from match() #30

Open edurenye opened 8 years ago

edurenye commented 8 years ago

Now it returns an array with the id as the key, the quality as the value and sorted in descendant order.

mirodietiker commented 8 years ago

As discussed, what i'm loooking for is an interface contract that wraps the result and that's what we want to return. (e.g. match score, matching fields, ...) We should not iterate on it too much as it breaks every use of match() again and again. Thus let's do a solid proposal and then implement the interface in a single change.