Skip to content

Commit

Permalink
[5.x] Fix search results missing search_snippets (#11450)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivang76 authored Feb 17, 2025
1 parent d65cbcd commit c66f9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Search/Comb/Comb.php
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ private function searchOverData($params, $raw_query)
}

// snippet extraction (only needs to run during one chunk)
if ($matched && $j === 0) {
if ($matched && ! isset($snippets[$name])) {
$snippets[$name] = $this->extractSnippets($property, $params['chunks']);
}
}
Expand Down

0 comments on commit c66f9f7

Please sign in to comment.