public function getFacet($name)
    {
        $result = null;
        foreach ($this->facets as $facet) {
            if ($facet->getName() === $name) {
                $result = $facet;
            }
        }
        return $result;
    }