Skip to content

Commit

Permalink
Fix issue statamic#11398: Search results missing search_snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
ivang76 committed Feb 13, 2025
1 parent 97a8268 commit a405d9f
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 a405d9f

Please sign in to comment.