diff --git a/eZ/Publish/Core/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php b/eZ/Publish/Core/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php index dabf42bc2ac..4ef7fd05540 100644 --- a/eZ/Publish/Core/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php +++ b/eZ/Publish/Core/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php @@ -180,7 +180,7 @@ protected function getWordIdSubquery(QueryBuilder $query, string $string): strin } // Search for provided string itself as well - $wordExpressions[] = $this->getWordExpression($subQuery, $string); + $wordExpressions[] = $this->getWordExpression($query, $string); $whereCondition = $subQuery->expr()->orX(...$wordExpressions);