public function removeAllFacetValuesByName($facetName)
    {
        $facetValues = $this->getActiveFacets();
        $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) {
            $parts = explode(':', $facetValue, 2);
            return $parts[0] !== $facetName;
        });

        $this->setActiveFacets($facetValues);
        $this->stateChanged = true;
        return $this;
    }
public function removeAllFacetValuesByName($facetName)
    {
        $facetValues = $this->getActiveFacets();
        $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) {
            $parts = explode(':', $facetValue, 2);
            return $parts[0] !== $facetName;
        });

        $this->setActiveFacets($facetValues);
        $this->stateChanged = true;
        return $this;
    }
public function removeAllFacetValuesByName ( $ facetName ) { $ facetValues = $ this -> getActiveFacets ( ) ; $ facetValues = array_filter ( $ facetValues , function ( $ facetValue ) use ( $ facetName ) { $ parts = explode ( ':' , $ facetValue , 2 ) ; return $ parts [ 0 ] !== $ facetName ; } ) ; $ this -> setActiveFacets ( $ facetValues ) ; $ this -> stateChanged = true ; return $ this ; }
Removes all facet values from the request by a certain facet name

@param string $facetName

@return SearchRequest
Removes all facet values from the request by a certain facet name