Skip to content

Commit

Permalink
display result from all providers
Browse files Browse the repository at this point in the history
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
  • Loading branch information
ArtificialOwl authored and backportbot[bot] committed May 6, 2021
1 parent 3d6c31b commit 84270ee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Search/UnifiedSearchProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,12 @@ public function search(IUser $user, ISearchQuery $query): SearchResult {
private function generateSearchRequest(ISearchQuery $query): ISearchRequest {
$searchRequest = new SearchRequest();

$app = 'abc';
if (($pos = strpos($app, '.')) !== false) {
$app = substr($app, 0, $pos);
}
// $app = 'abc';
// if (($pos = strpos($app, '.')) !== false) {
// $app = substr($app, 0, $pos);
// }

$searchRequest->setProviders([$app]);
$searchRequest->setProviders(['all']);
$searchRequest->setSearch($query->getTerm());
$searchRequest->setPage((int)floor(($query->getCursor() ?? 0) / $query->getLimit()) + 1);
$searchRequest->setParts([]);
Expand Down

0 comments on commit 84270ee

Please sign in to comment.