diff --git a/Classes/Domain/Search/Score/ScoreCalculationService.php b/Classes/Domain/Search/Score/ScoreCalculationService.php index 591c680474..9a517a57a1 100644 --- a/Classes/Domain/Search/Score/ScoreCalculationService.php +++ b/Classes/Domain/Search/Score/ScoreCalculationService.php @@ -98,7 +98,7 @@ public function parseScores(string $debugData, string $queryFields): array $pattern = '/' . preg_quote($field, '/') . '\^([\d.]*)/'; $boostMatches = []; preg_match_all($pattern, $queryFields, $boostMatches); - $boost = (float)$boostMatches[1][0]; + $boost = (float)($boostMatches[1][0] ?? 0); $highScores[$field] = new Score($boost, $field, $currentScoreValue, $searchTerm); } }