Vantage 1.2 - Improve search results when searching by "Search For"
The way the search works in Vantage 1.2 when you use the "Search For" field with multiple entries like "mexican food" is:
a) the word "mexican" must appear somewhere in the listing within the "title", "content", "category" or "tags"
b) the word "food" must appear somewhere in the listing within the "title", "content", "category" or "tags"
c) both the 2 words "mexican" AND
"food" must appear somewhere within the listing.
The conditional "AND
" limits the ability to find matching listings unless the 2 words entered in the search appear in the listing.
Would it not be better to find listings that have either of the 2 words entered in the search - that is an "OR
" to be used.
See this discussion: http://forums.appthemes.com/vantage-...results-54048/
To utilize the "OR
" in searching for listings, you can make a simple 1 line code change as follows:
In the "\vantage\includes\views.php" find the following line:
$searchand = ' AND ';
and change it to:
$searchand = ' OR ';
NOTE: I hope Vantage developers think this is a worthy change to improve search results.