mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 14:18:27 +01:00
Use same order for meta searching that is used for content page searching by default (#6967)
This commit is contained in:
parent
a3072f9f74
commit
60c77b2a00
@ -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)
|
||||
-----------------------------
|
||||
|
@ -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 = [];
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user