Skip to content

Commit

Permalink
Return collection
Browse files Browse the repository at this point in the history
  • Loading branch information
robbanl committed Oct 31, 2023
1 parent 9a1a679 commit 253f905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Meilisearch/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function searchUsingApi($query, $options = ['hitsPerPage' => 1000000, 'sh
$this->handlemeilisearchException($e, 'searchUsingApi');
}

collect($searchResults->getHits())->map(function ($hit) {
return collect($searchResults->getHits())->map(function ($hit) {
$hit['search_score'] = (int) ceil($hit['_rankingScore'] * 1000);
unset($hit['_rankingScore']);

Expand Down

0 comments on commit 253f905

Please sign in to comment.