Update API profile search request to match updated fulltext index definition

This commit is contained in:
Hypolite Petovan 2020-09-27 08:39:31 -04:00
parent 3939800068
commit b7eab197b5

View file

@ -47,7 +47,7 @@ class Search
$query .= '%';
$sql_where = '`' . $field . '` LIKE :query';
} else {
$sql_where = "MATCH (p.`name`, p.`pdesc`, p.`profile_url`, p.`locality`, p.`region`, p.`country`, p.`tags` )
$sql_where = "MATCH (p.`name`, p.`pdesc`, p.`username`, p.`locality`, p.`region`, p.`country`, p.`tags` )
AGAINST (:query IN BOOLEAN MODE)";
}