How to search for a whole phrase

By default, GravityView splits a search that contains a phrase into a search for each word separately.

Searching for the phrase "Experience with PHP" will return results for entries that contain "Experience", "with", and "PHP".

If you want to search for the exact phrase, instead of the individual words, add a filter (here's how to add filters to your site).

Make searching phrases more accurate

Putting phrases in quotes doesn't modify the search output. Instead, add this filter:

add_filter( 'gravityview/search-all-split-words', '__return_false' );

This will force GravityView to search for the entire phrase.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us