Skip to content

Commit

Permalink
Merge pull request #47 from RRZE-Webteam/FAU-447
Browse files Browse the repository at this point in the history
[FAU-447] Include keywords in searchable content
  • Loading branch information
zhyian authored Dec 24, 2024
2 parents c60a3c0 + 0e593a0 commit c3aad86
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 c3aad86

Please sign in to comment.