-
Notifications
You must be signed in to change notification settings - Fork 0
Description
When I upgraded to the latest version of the WP Full Text Search Plugin this morning I noticed two issues, on of which seems they know about with the deep searching, but the other with AND/OR search options seems like we may need to add something to our query.
Here is their response to my question.
The “word logic” option now is applied only on Main Query (the WP_Query() which WP makes before the routing). In case you’re using your own WP_Query() call, please make sure you have added specific parameters into the wp_query call:
wpfts_is_force => 1, // To force WPFTS functionality ON
word_logic => 'and', // or 'or'
@jkva do we do this? It is doing an AND search always which is fine not sure if you hard coded that instead of using the WPFTS functionality allowing the admin to select AND or OR.
About deeper search: please check if you have a different amount of results with deeper search ON and OFF.
Sometimes the post found with deeper search OFF (means the word was found by its starting part) is shown in the Smart Excerpts and some words that contain search phrases in the MIDDLE are highlighted too. It’s a known bug of Smart Excerpt (not the search) that will be fixed in nearest future.
Here is my response:
As for the results of Deep search on/off
Previously when searching for a stand alone term “ppe” with deep search off I would get 1 result [which was correct as we had a single word ppe (personal protective equipment)]
When we turned deep search on we previously got 529 results which made sense as it found “ppe” in other words.
However now with the latest version we get 29 results with it turned on or off.
@jkva due to this issue I think I will have to revert to the older version of the plugin since it is finding partial words unless you have an idea.