public function whereMatch(string $field, string $query, $operator = "or", $fuzziness = 0)
    {
        $param = [
            "match" => [
                $field => [
                    "query" => $query,
                    "operator" => $operator,
                    "fuzziness" => $fuzziness
                ]
            ]
        ];

        $this->elasticQuery[] = $param;
        return $this;
    }
public function whereMatch(string $field, string $query, $operator = "or", $fuzziness = 0)
    {
        $param = [
            "match" => [
                $field => [
                    "query" => $query,
                    "operator" => $operator,
                    "fuzziness" => $fuzziness
                ]
            ]
        ];

        $this->elasticQuery[] = $param;
        return $this;
    }
public function whereMatch ( string $ field , string $ query , $ operator = "or" , $ fuzziness = 0 ) { $ param = [ "match" => [ $ field => [ "query" => $ query , "operator" => $ operator , "fuzziness" => $ fuzziness ] ] ] ; $ this -> elasticQuery [ ] = $ param ; return $ this ; }
Where query matches field

@param  string $field
@param  string $query
@param  string $operator
@param  int    $fuzziness
@return $this
Where query matches field