Skip to content

Commit

Permalink
feat: include keywords in searchable content
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyian committed Dec 19, 2024
1 parent 274def9 commit 48da345
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Keywords are indexed for searching.

## [2.1.0] - 2024-09-06

### Added
Expand Down
1 change: 1 addition & 0 deletions src/Infrastructure/Search/SearchableContentUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private function buildSearchableContent(
$rawView->title()->asString($languageCode),
$rawView->subtitle()->asString($languageCode),
$rawView->content()->about()->description()->asString($languageCode),
...array_values($rawView->keywords()->asArrayOfStrings($languageCode)->getArrayCopy()),
];

return implode(' ', $parts);
Expand Down

0 comments on commit 48da345

Please sign in to comment.