public function buildParam($facetParam, $field)
    {
        $param = '';

        // Parameter is per-field
        if ($field !== null) {
            $param .= 'f.' . $field . '.';
        }

        $param .= $facetParam;
        return $param;
    }
public function buildParam($facetParam, $field)
    {
        $param = '';

        // Parameter is per-field
        if ($field !== null) {
            $param .= 'f.' . $field . '.';
        }

        $param .= $facetParam;
        return $param;
    }
public function buildParam ( $ facetParam , $ field ) { $ param = '' ; // Parameter is per-field if ( $ field !== null ) { $ param .= 'f.' . $ field . '.' ; } $ param .= $ facetParam ; return $ param ; }
Helper function that builds a facet param based on whether it is global
or per-field. If the field is null, the param is global.

@param string $facetParam
@param string|null $field

@return string

@see http://wiki.apache.org/solr/SimpleFacetParameters#Parameters
Helper function that builds a facet param based on whether it is global or per - field . If the field is null the param is global .