Created
January 22, 2015 13:42
-
-
Save jchristopher/266574d6a96bf18376ae to your computer and use it in GitHub Desktop.
Modify the threshold for SearchWP shifting into a more aggressive AND logic pass when too many results are returned
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// if over 100 results are returned from an AND logic pass | |
// refine the AND results by title | |
function my_searchwp_max_and_results( $number_of_results ) { | |
return 100; | |
} | |
add_filter( 'searchwp_max_and_results', 'my_searchwp_max_and_results' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment