Use same order for meta searching that is used for content page searching by default (#6967)

This commit is contained in:
Yuriy Bakhtin 2024-04-25 12:35:53 +02:00 committed by GitHub
parent a3072f9f74
commit 60c77b2a00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@ HumHub Changelog
- Fix #6954: Search out of viewport on mobile
- Fix #6962: People filter - Hide follower options if Following is disabled in the User module
- Fix #6961: Fix people dropdown filter without defined keys
- Fix #6967: Use same order for meta searching that is used for content page searching by default
1.16.0-beta.2 (April 9, 2024)
-----------------------------

View File

@ -77,6 +77,7 @@ class ContentSearchProvider implements MetaSearchProviderInterface
$resultSet = $module->getSearchDriver()->search(new SearchRequest([
'keyword' => $this->getKeyword(),
'pageSize' => $maxResults,
'orderBy' => SearchRequest::ORDER_BY_SCORE,
]));
$results = [];

View File

@ -42,7 +42,7 @@ class SearchRequest extends Model
public $contentContainer = [];
public $orderBy = 'content.created_at';
public $orderBy = self::ORDER_BY_CREATION_DATE;
public ?SearchQuery $searchQuery = null;