BP Autocomplete for Messages gives irrelevant results


Setup WP 3.5, BP 1.6.3.

I have autocomplete enabled for Messages by way of BP_MESSAGES_AUTOCOMPLETE_ALL in wp-config

The autocomplete searches by means of BP_Core_User::search_users

This function however searches ALL fields in the xprofile data table for matches.

The result is irrelevant results mixed with relevant ones.


I want to search for John Doe. Typing John will find John everyone with John in their name, but also folks living on John Street or with children / pets / whatever with John in the xprofile field data.

Pointers to get around this are highly appreciated!



PS. Have posted at BP forums as well