Bolt\Storage\Query\SearchWeighter::weight PHP Method

weight() public method

This is the public method that gets a score for a the set of results.
public weight ( ) : array
return array An array of scores for each of the corresponding results
    public function weight()
    {
        $scores = [];
        foreach ($this->results as $result) {
            $scores[] = $this->getResultScore($result);
        }
        return $scores;
    }