Search now searched in full name and user name
This commit is contained in:
parent
c2305d991b
commit
da752c9f13
|
@ -32,7 +32,7 @@ class photoannotation_Core {
|
|||
"SELECT SQL_CALC_FOUND_ROWS {users}.*, " .
|
||||
" MATCH({users}.`name`) AGAINST ('$q' IN BOOLEAN MODE) AS `score` " .
|
||||
"FROM {users} " .
|
||||
"WHERE MATCH({users}.`name`) AGAINST ('$q' IN BOOLEAN MODE) " .
|
||||
"WHERE MATCH({users}.`name`, {users}.`full_name`) AGAINST ('$q' IN BOOLEAN MODE) " .
|
||||
"ORDER BY `score` DESC " .
|
||||
"LIMIT $page_size OFFSET $offset";
|
||||
$data = $db->query($query);
|
||||
|
|
Reference in New Issue
Block a user