Alter BuddyPress member search to include search on added profile fields [closed]

Fields added by S2Member are probably stored in wp_usermeta, while BP’s member search searches over data stored in BP’s xprofile tables. Probably the most straightforward fix is to use a BP profile field for your ‘company’ data. If you’ve already got member data in there, you’d have to write a script that moves (or copies) it over. The alternative is to tap into BP’s search queries and join against the usermeta tables.