Classes/Eel/ElasticSearchQueryBuilder.php
public function queryFilterMultiple(array $data, $clauseType = 'must'): ElasticSearchQueryBuilder
    {
        foreach ($data as $key => $value) {
            if ($value !== null) {
                if (is_array($value)) {
                    $this->queryFilter('terms', [$key => $value], $clauseType);
                } else {
                    $this->queryFilter('term', [$key => $value], $clauseType);
                }
            }
        }

        return $this;
    }
public function queryFilterMultiple(array $data, $clauseType = 'must'): ElasticSearchQueryBuilder
    {
        foreach ($data as $key => $value) {
            if ($value !== null) {
                if (is_array($value)) {
                    $this->queryFilter('terms', [$key => $value], $clauseType);
                } else {
                    $this->queryFilter('term', [$key => $value], $clauseType);
                }
            }
        }

        return $this;
    }
public function queryFilterMultiple ( array $ data , $ clauseType = 'must' ) : ElasticSearchQueryBuilder { foreach ( $ data as $ key => $ value ) { if ( $ value !== null ) { if ( is_array ( $ value ) ) { $ this -> queryFilter ( 'terms' , [ $ key => $ value ] , $ clauseType ) ; } else { $ this -> queryFilter ( 'term' , [ $ key => $ value ] , $ clauseType ) ; } } } return $ this ; }
Add multiple filters to query.filtered.filter

Example Usage:

searchFilter = Neos.Fusion:RawArray {
author = 'Max'
tags = Neos.Fusion:RawArray {
0 = 'a'
1 = 'b'
}
}

searchQuery = ${Search.queryFilterMultiple(this.searchFilter)}

@param array $data An associative array of keys as variable names and values as variable values
@param string $clauseType one of must, should, must_not
@return ElasticSearchQueryBuilder
@throws QueryBuildingException
@api
Add multiple filters to query . filtered . filter