public function addFacets($facets)
    {
        if (is_array($this->facets)) {
            $this->facets = array_merge($this->facets, $facets);
        } else {
            $this->facets = $facets;
        }
        return $this;
    }
public function addFacets($facets)
    {
        if (is_array($this->facets)) {
            $this->facets = array_merge($this->facets, $facets);
        } else {
            $this->facets = $facets;
        }
        return $this;
    }
public function addFacets ( $ facets ) { if ( is_array ( $ this -> facets ) ) { $ this -> facets = array_merge ( $ this -> facets , $ facets ) ; } else { $ this -> facets = $ facets ; } return $ this ; }
Adds additional FACET part of the query.
@param array $facets facet specifications.
@return $this the query object itself
Adds additional FACET part of the query .