src/Graviton/DocumentBundle/DependencyInjection/Compiler/SolrDefinitionCompilerPass.php
private function getSolrWeightString(array $solrFields)
    {
        $weights = [];
        foreach ($solrFields as $field) {
            $weights[] = $field['name'].'^'.$field['weight'];
        }

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

        return implode(' ', $weights);
    }
private function getSolrWeightString ( array $ solrFields ) { $ weights = [ ] ; foreach ( $ solrFields as $ field ) { $ weights [ ] = $ field [ 'name' ] . '^' . $ field [ 'weight' ] ; } return implode ( ' ' , $ weights ) ; }
Returns the solr weight string

@param array $solrFields fields

@return string weight string
Returns the solr weight string