diff --git a/framework/core/src/Discussion/Search/Gambit/FulltextGambit.php b/framework/core/src/Discussion/Search/Gambit/FulltextGambit.php index 46e4b3da1..ab788393e 100644 --- a/framework/core/src/Discussion/Search/Gambit/FulltextGambit.php +++ b/framework/core/src/Discussion/Search/Gambit/FulltextGambit.php @@ -52,7 +52,7 @@ class FulltextGambit implements GambitInterface // discussions that have a relevant title or that contain relevant posts. $query ->addSelect('posts_ft.most_relevant_post_id') - ->join( + ->leftJoin( new Expression('('.$subquery->toSql().') '.$grammar->wrapTable('posts_ft')), 'posts_ft.discussion_id', '=', 'discussions.id' )