src/Services/DocumentSearch.php
private function set_facets()
    {
        if (isset($this->arrSearch['facets'])) {
            if (!is_array($this->arrSearch['facets'])) {
                throw new DocumentSearchWrongFacet('"Facets" key is not an array');
            }

            $this->arrPayload['facets'] = $this->arrSearch['facets'];
        }

        return $this;
    }
private function set_facets()
    {
        if (isset($this->arrSearch['facets'])) {
            if (!is_array($this->arrSearch['facets'])) {
                throw new DocumentSearchWrongFacet('"Facets" key is not an array');
            }

            $this->arrPayload['facets'] = $this->arrSearch['facets'];
        }

        return $this;
    }
Set facets

@return DocumentSearch
@throws DocumentSearchWrongFacet