Skip to content

Commit

Permalink
Use same order for meta searching that is used for content page searc…
Browse files Browse the repository at this point in the history
…hing by default (#6967)
  • Loading branch information
yurabakhtin committed Apr 25, 2024
1 parent a3072f9 commit 60c77b2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-DEV.md
Expand Up @@ -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)
-----------------------------
Expand Down
Expand Up @@ -77,6 +77,7 @@ public function getResults(int $maxResults): array
$resultSet = $module->getSearchDriver()->search(new SearchRequest([
'keyword' => $this->getKeyword(),
'pageSize' => $maxResults,
'orderBy' => SearchRequest::ORDER_BY_SCORE,
]));

$results = [];
Expand Down
2 changes: 1 addition & 1 deletion protected/humhub/modules/content/search/SearchRequest.php
Expand Up @@ -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;

Expand Down

0 comments on commit 60c77b2

Please sign in to comment.