public function getFacet($name)
    {
        $facets = $this->getFacets();
        if (!isset($facets[$name])) {
            throw new InvalidCallException("Facet '{$name}' does not present.");
        }
        return $facets[$name];
    }
public function getFacet($name)
    {
        $facets = $this->getFacets();
        if (!isset($facets[$name])) {
            throw new InvalidCallException("Facet '{$name}' does not present.");
        }
        return $facets[$name];
    }
public function getFacet ( $ name ) { $ facets = $ this -> getFacets ( ) ; if ( ! isset ( $ facets [ $ name ] ) ) { throw new InvalidCallException ( "Facet '{$name}' does not present." ) ; } return $ facets [ $ name ] ; }
Returns results of the specified facet.
@param string $name facet name
@throws InvalidCallException if requested facet does not present in results.
@return array facet results.
Returns results of the specified facet .