mirror of
https://github.com/friendica/friendica
synced 2025-04-25 02:30:11 +00:00
Use full text search
This commit is contained in:
parent
fac76a33df
commit
508d84b2b7
10 changed files with 173 additions and 121 deletions
|
@ -376,8 +376,7 @@ class Timeline extends BaseModule
|
|||
$condition = [];
|
||||
|
||||
if (!empty($channel->fullTextSearch)) {
|
||||
$first = $this->database->selectFirst('post-engagement', ['uri-id']);
|
||||
$condition = DBA::mergeConditions($condition, ["`uri-id` IN (SELECT `uri-id` FROM `post-content` WHERE `uri-id` >= ? AND MATCH (`title`, `content-warning`, `body`) AGAINST (? IN BOOLEAN MODE))", $first['uri-id'], $channel->fullTextSearch]);
|
||||
$condition = DBA::mergeConditions($condition, ["MATCH (`searchtext`) AGAINST (? IN BOOLEAN MODE)", $channel->fullTextSearch]);
|
||||
}
|
||||
|
||||
if (!empty($channel->includeTags)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue