1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 00:17:31 +02:00

Revert search performance regression

We decided it is better to have a less intelligent search (that does not
match search terms in titles) for some people than a bad-performing
search for everyone.

We will revisit the search performance topic in the next release cycle,
possibly with larger changes around indexing.

Refs #1738, #1741, #1764.
This commit is contained in:
Franz Liedke
2019-10-26 15:41:39 +02:00
parent aa31b8307d
commit 9f6ec80432
2 changed files with 4 additions and 4 deletions

View File

@@ -53,7 +53,7 @@ class FulltextGambit implements GambitInterface
// discussions that have a relevant title or that contain relevant posts.
$query
->addSelect('posts_ft.most_relevant_post_id')
->leftJoin(
->join(
new Expression('('.$subquery->toSql().') '.$grammar->wrapTable('posts_ft')),
'posts_ft.discussion_id', '=', 'discussions.id'
)