From d126a4b23ebabbc64e60740d9924e3e5e737dc78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20S=C5=82omka?= Date: Thu, 30 Nov 2023 14:11:00 +0100 Subject: [PATCH] Restored checking if token contains wildcards --- .../Legacy/Content/Common/Gateway/CriterionHandler/FullText.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php b/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php index b2de8bea80..3662720902 100644 --- a/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php +++ b/src/lib/Search/Legacy/Content/Common/Gateway/CriterionHandler/FullText.php @@ -146,7 +146,7 @@ protected function tokenizeString($string) */ protected function getWordExpression(QueryBuilder $query, string $token): string { - if ($this->configuration['enableWildcards']) { + if ($this->configuration['enableWildcards'] && str_contains('*', $token)) { $hasLeadingWildcard = str_starts_with($token, '*'); $hasTrailingWildcard = str_ends_with($token, '*');