Skip to:

Opened 10 years ago

Closed 6 years ago

#5326 closed enhancement (maybelater)

Break up multi-word group and member searches for better results

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords: trac-tidy-2018


Currently, if you search "Awesome Group" in the Groups directory, it won't return "Awesome and Cool Group". We simply take the search terms and stick them into a LIKE clause.

Making the search work really well is a hard task, but surely we can improve on this bit. Let's break up the search terms at word breaks, and do separate LIKE clauses connected by ANDs to get our results. Eg:

SELECT ... WHERE ( ( LIKE '%Awesome%' OR g.description LIKE '%Awesome%' ) AND ( LIKE '%Group%' OR g.description LIKE '%Group%' ) ) ...

And something similar for member/xprofile queries. See

WordPress has a lot of good stuff, introduced in, to handle this kind of stuff. Sadly, most of it is marked protected and is organized in such a way that it won't really be usable for our purposes. We could try to compartmentalize it and pass patches upstream, or simply build our own modular versions based on it.

I think we could do something pretty minimal with high impact with not too much work. So I'm putting this tentatively in 2.0.

Change History (6)

#1 @boonebgorges
10 years ago

  • Milestone changed from 2.0 to 2.1

It's looking like I won't have time to work on this for 2.0. Moving to 2.1 for proper treatment.

#2 @DJPaul
10 years ago

  • Milestone changed from 2.1 to 2.2

#3 @DJPaul
10 years ago

  • Component changed from Core to All Components
  • Milestone changed from 2.2 to Future Release

#4 @DJPaul
8 years ago

  • Component changed from Component - Any/All to Core

#5 @DJPaul
6 years ago

  • Keywords trac-tidy-2018 added

We're closing this ticket because it has not received any contribution or comments for at least two years. We have decided that it is better to close tickets that are good ideas, which have not gotten (or are unlikely to get) contributions, rather than keep things open indefinitely. This will help us share a more realistic roadmap for BuddyPress with you.

Everyone very much appreciates the time and effort that you spent sharing your idea with us. On behalf of the entire BuddyPress team, thank you.

If you feel strongly that this enhancement should still be added to BuddyPress, and you are able to contribute effort towards it, we encourage you to re-open the ticket, or start a discussion about it in our Slack channel. Please consider that time has proven that good ideas without contributions do not get built.

For more information, see
or find us on Slack, in the #buddypress channel:

#6 @DJPaul
6 years ago

  • Milestone Awaiting Contributions deleted
  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.