Notifications
Clear all

[Solved] Exact phrase search

6 Posts
3 Users
3 Reactions
700 Views
JorgeW
Posts: 107
Topic starter
(@jorgew)
Estimable Member
Joined: 6 years ago

Hi,

1 - Exact phrase search

Regarding the possibility of an exact phrase search, there are these two-year-old posts that I found in this forum:

https://wpforo.com/community/postid/51936/

https://wpforo.com/community/postid/51944/

 

Which say (emphasis mine):

The search will be improved for sure, but it requires total change of the working base, we will move it from the MySQL FullText to Indexed system in the next 2.x major version. This is not planned in 1.x versions for sure.

and...

I'm sorry, but we don't have any ETA yet. Probably we'll add an option (checkbox) to enable "exact match" in the search form or something else in upcoming 1.9.x versions.

 

But it seems that in latest version (2.2.6) this option isn't still available.

1.1 - Will the 'exact phrase' search option be available soon?

 


 

As a sort of improvement for a missing 'exact phrase' search: 

 

2 - Boolean search

As far as I remember, in an earlier version (1.6.1), this search syntax: +sweet +green +apples would force wpForo to find only posts that included ALL three terms (in any order).

And this one: +sweet -green +apples would force wpForo to find only posts that included the terms sweet AND apples EXCLUDING green (in any order).

 

2.1 - Is it possible for ver 2.2.6 to perform any kind of boolean search such as:

sweet AND green AND apples (in any order)?

or

sweet AND apples AND_NOT green (in any order)?

Thanks

Topic Tags
5 Replies
Robert
Posts: 10591
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @jorgew,

Please try the mentioned search methods with 2.2.7 version. Most of the listed logics should be already supported.

1 Reply
JorgeW
(@jorgew)
Joined: 6 years ago

Estimable Member
Posts: 107

Thanks @robert 

I will update and try it.

JorgeW
Posts: 107
Topic starter
(@jorgew)
Estimable Member
Joined: 6 years ago

WOW!! @robert it works super great, THANK YOU SO MUCH!!

I'm sure this will be a most significant improvement for wpForo.

Once again THANK YOU!!

 

JorgeW
Posts: 107
Topic starter
(@jorgew)
Estimable Member
Joined: 6 years ago

Hi @st7878, @upstartdm, @crisw

Remember this post two years ago?
https://wpforo.com/community/how-to-and-troubleshooting-2/forum-search-not-working-as-expected/#post-44734

And this one (mine), 5 years ago?
https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-search-for-the-exact-words-in-a-phrase/#post-25812

If you are still around, these are good news for you too:

 

wpForo 2.2.7 Changes

  • Improved: Forum search supports exact phrase search and boolean search:
    • Example: "search phrase" for exact phrase search
    • Example: +search +phrase for boolean search ("+" means AND)
    • Example: -"search phrase" for boolean search ("-" means NOT)
    • Example: search* for wildcard search

 

https://wpforo.com/community/wpforo-announcements/wpforo-2-2-is-released/#post-104495

1 Reply
(@upstartdm)
Joined: 5 years ago

Trusted Member
Posts: 50

@jorgew Yes indeed, and I was delighted to see this mentioned in the list of changes for the recent update. This is BIG NEWS and VERY WELCOME!!