Reply To: Bio search works till fourth or fifth keyword only

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Bio search works till fourth or fifth keyword only Reply To: Bio search works till fourth or fifth keyword only

#13667
Ernest Marcinko
Ernest Marcinko
Keymaster

Hi,

The file has been re-named to:

wp-content/plugins/ajax-search-pro/includes/classes/search/class-asp-search.php

..and the lines have been changed slightly, they should be found on positions 118-119, they look like this:

$this->_s = ASP_Helpers::escape( array_slice(array_unique( explode(" ", $keyword) ), 0, 6) );
$this->_sr = ASP_Helpers::escape( array_slice(array_unique( array_reverse( explode(" ", $keyword_rev ) ) ), 0, 6) );

..just change them to this:

$this->_s = ASP_Helpers::escape( array_slice(array_unique( explode(" ", $keyword) ), 0, 25) );
$this->_sr = ASP_Helpers::escape( array_slice(array_unique( array_reverse( explode(" ", $keyword_rev ) ) ), 0, 25) );

PS: Update for the upcoming release
I will make sure to add an additional argument to the search params, so this number will be changeable without direct modifications, only by using a filter code, in the upcoming release.
For that, you will only need this code, placed in the functions.php file in your theme/child theme directory (copy from line 3):

This will work after the next update is released.

Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)