Content/ArticleDataProvider.php
private function addBoolQuery($filterName, array $filters, $field, $operator, BoolQuery $query, &$queriesCount)
    {
        if (0 !== count($tags = $this->getFilter($filters, $filterName, []))) {
            ++$queriesCount;
            $query->add($this->getBoolQuery($field, $tags, $operator));
        }
    }
private function addBoolQuery($filterName, array $filters, $field, $operator, BoolQuery $query, &$queriesCount)
    {
        if (0 !== count($tags = $this->getFilter($filters, $filterName, []))) {
            ++$queriesCount;
            $query->add($this->getBoolQuery($field, $tags, $operator));
        }
    }
private function addBoolQuery ( $ filterName , array $ filters , $ field , $ operator , BoolQuery $ query , & $ queriesCount ) { if ( 0 !== count ( $ tags = $ this -> getFilter ( $ filters , $ filterName , [ ] ) ) ) { ++ $ queriesCount ; $ query -> add ( $ this -> getBoolQuery ( $ field , $ tags , $ operator ) ) ; } }
Add a boolean-query if filter exists.

@param string $filterName
@param array $filters
@param string $field
@param string $operator
@param BoolQuery $query
@param int $queriesCount
Add a boolean - query if filter exists .