Skip to content

Commit

Permalink
✨ introducing ability to get score outside of TntSearch to make it po…
Browse files Browse the repository at this point in the history
…ssibile to reorder result after multiple searches (see: #55)
  • Loading branch information
it4need committed Jul 29, 2022
1 parent a17cf99 commit 25bc3d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/TNTSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public function search($phrase, $numOfResults = 100)
return [
'ids' => array_keys($docs->toArray()),
'hits' => $totalHits,
'docScores' => $docScores,
'execution_time' => round($stopTimer - $startTimer, 7) * 1000 ." ms"
];
}
Expand Down

0 comments on commit 25bc3d6

Please sign in to comment.