[buddypress-trac] [BuddyPress Trac] #3278: @mentions autosuggest support

buddypress-trac noreply at wordpress.org
Sun Aug 3 20:51:44 UTC 2014

#3278: @mentions autosuggest support
 Reporter:  DJPaul                  |       Owner:
     Type:  enhancement             |      Status:  assigned
 Priority:  normal                  |   Milestone:  2.1
Component:  Notifications           |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |

Comment (by djpaul):

 In [changeset:"8753"]:
 #!CommitTicketReference repository="" revision="8753"
 Core: adjust the SQL generated by `BP_User_Query`'s `search_wildcard`
 parameter for better Suggestions API search results.

 Introduced in r8675, the `search_wildcard` parameter controls where
 BuddyPress places MySQL wildcard characters around the search term (when
 it's set).

 This change adjusts how the wildcard SQL is constructed; in addition to
 the wildcard, we now also check for matches that have a single space
 character at the opposite end of the string (from where the wildcard is).
 This allows searching data that looks like (for example) a surname in a
 combined first name/surname field.
 e.g. if a displayname is "Paul Gibbs", you can search for "Gi", and with
 `search_wildcard=right`, the SQL generated will be `LIKE 'Gi%' OR LIKE '%

 See #3278

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3278#comment:49>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list