Add missing column in profile fulltext index #62
|
@ -47,7 +47,7 @@ class Search
|
||||||
$query .= '%';
|
$query .= '%';
|
||||||
$sql_where = '`' . $field . '` LIKE :query';
|
$sql_where = '`' . $field . '` LIKE :query';
|
||||||
} else {
|
} 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)";
|
AGAINST (:query IN BOOLEAN MODE)";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
BEGIN;
|
||||||
|
COMMIT;
|
|
@ -0,0 +1,2 @@
|
||||||
|
BEGIN;
|
||||||
|
COMMIT;
|
|
@ -1,4 +1,4 @@
|
||||||
BEGIN;
|
BEGIN;
|
||||||
ALTER TABLE `profile` DROP KEY `profile-ft`;
|
ALTER TABLE `profile` DROP KEY `profile-ft`;
|
||||||
ALTER TABLE `profile` ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `profile_url`, `locality`, `region`, `country`);
|
ALTER TABLE `profile` ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `profile_url`, `locality`, `region`, `country`, `tags`);
|
||||||
COMMIT;
|
COMMIT;
|
|
@ -1,4 +1,4 @@
|
||||||
BEGIN;
|
BEGIN;
|
||||||
ALTER TABLE `profile` DROP KEY `profile-ft`;
|
ALTER TABLE `profile` DROP KEY `profile-ft`;
|
||||||
ALTER TABLE `profile` ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `username`, `locality`, `region`, `country`);
|
ALTER TABLE `profile` ADD FULLTEXT KEY `profile-ft` (`name`, `pdesc`, `username`, `locality`, `region`, `country`, `tags`);
|
||||||
COMMIT;
|
COMMIT;
|
||||||
|
|
Loading…
Reference in a new issue