public function removeFacetValue($facetName, $facetValue)
    {
        if (!$this->getHasFacetValue($facetName, $facetValue)) {
            return $this;
        }
        $facetValues = $this->getActiveFacets();
        $facetValueToLookFor = $facetName . ':' . $facetValue;

        foreach ($facetValues as $index => $facetValue) {
            if ($facetValue === $facetValueToLookFor) {
                unset($facetValues[$index]);
                break;
            }
        }

        $this->setActiveFacets($facetValues);
        $this->stateChanged = true;
        return $this;
    }
public function removeFacetValue($facetName, $facetValue)
    {
        if (!$this->getHasFacetValue($facetName, $facetValue)) {
            return $this;
        }
        $facetValues = $this->getActiveFacets();
        $facetValueToLookFor = $facetName . ':' . $facetValue;

        foreach ($facetValues as $index => $facetValue) {
            if ($facetValue === $facetValueToLookFor) {
                unset($facetValues[$index]);
                break;
            }
        }

        $this->setActiveFacets($facetValues);
        $this->stateChanged = true;
        return $this;
    }
public function removeFacetValue ( $ facetName , $ facetValue ) { if ( ! $ this -> getHasFacetValue ( $ facetName , $ facetValue ) ) { return $ this ; } $ facetValues = $ this -> getActiveFacets ( ) ; $ facetValueToLookFor = $ facetName . ':' . $ facetValue ; foreach ( $ facetValues as $ index => $ facetValue ) { if ( $ facetValue === $ facetValueToLookFor ) { unset ( $ facetValues [ $ index ] ) ; break ; } } $ this -> setActiveFacets ( $ facetValues ) ; $ this -> stateChanged = true ; return $ this ; }
Removes a facet value from the request.

@param string $facetName
@param mixed $facetValue

@return SearchRequest
Removes a facet value from the request .