src/QueryBuilder.php
/**
     * Creates multiple mutli_match queries for each value in the array
     * 
     * Queries will be joined by an OR filter
     * 
     * @param array $keys keys(fields) of the multimatch
     * @param scalar[] $values a list of values to create a multimatch query for
     * @param type $bool
     * @param array $params
     * @return QueryBuilder|static|self
     */
Creates multiple mutli_match queries for each value in the array

Queries will be joined by an OR filter


Creates multiple mutli_match queries for each value in the array Queries will be joined by an OR filter
public function multiMatches(array $keys, array $values, $bool, $filter = false, array $params = []) {
        $subQuery = $this->orWhere($bool);
        foreach ($values as $value) {
            $subQuery->multiMatch($keys, $value, $bool, true, $params);
        }
        $subQuery->endSubQuery();
        return $this;
    }
public function multiMatches ( array $ keys , array $ values , $ bool , $ filter = false , array $ params = [ ] ) { $ subQuery = $ this -> orWhere ( $ bool ) ; foreach ( $ values as $ value ) { $ subQuery -> multiMatch ( $ keys , $ value , $ bool , true , $ params ) ; } $ subQuery -> endSubQuery ( ) ; return $ this ; }
Creates multiple mutli_match queries for each value in the array
Creates multiple mutli_match queries for each value in the array