private function getSearchSuggestions()
    {
        $tokens = $this->getTokens();
        $allResults = array();
        foreach ($tokens as $token) {
            $allResults = $this->getSearchSuggestion($token, $allResults);
        }
        return $allResults;
    }
private function getSearchSuggestions()
    {
        $tokens = $this->getTokens();
        $allResults = array();
        foreach ($tokens as $token) {
            $allResults = $this->getSearchSuggestion($token, $allResults);
        }
        return $allResults;
    }
private function getSearchSuggestions ( ) { $ tokens = $ this -> getTokens ( ) ; $ allResults = array ( ) ; foreach ( $ tokens as $ token ) { $ allResults = $ this -> getSearchSuggestion ( $ token , $ allResults ) ; } return $ allResults ; }
Uses the levenshtein algorithm to determine the term that is
closest to the token that was input for the search
@return array
@throws \Exception
Uses the levenshtein algorithm to determine the term that is closest to the token that was input for the search