src/Search.php
public function addPostFilter(BuilderInterface $filter, $boolType = BoolQuery::MUST, $key = null)
    {
        $this
            ->getEndpoint(PostFilterEndpoint::NAME)
            ->addToBool($filter, $boolType, $key);

        return $this;
    }
public function addPostFilter(BuilderInterface $filter, $boolType = BoolQuery::MUST, $key = null)
    {
        $this
            ->getEndpoint(PostFilterEndpoint::NAME)
            ->addToBool($filter, $boolType, $key);

        return $this;
    }
public function addPostFilter ( BuilderInterface $ filter , $ boolType = BoolQuery :: MUST , $ key = null ) { $ this -> getEndpoint ( PostFilterEndpoint :: NAME ) -> addToBool ( $ filter , $ boolType , $ key ) ; return $ this ; }
Adds a post filter to search.

@param BuilderInterface $filter   Filter.
@param string           $boolType Example boolType values:
- must
- must_not
- should.
@param string           $key

@return $this.
Adds a post filter to search .