private function getSolrWeightString(array $solrFields)
    {
        $weights = [];
        foreach ($solrFields as $field) {
            $weights[] = $field['name'].'^'.$field['weight'];
        }

        return implode(' ', $weights);
    }