src/ElasticSearch/DSL/Query.php
public function wildcard($val, $field=false) {
        $this->wildcard = ($field)
            ? array($field => $val)
            : $val;
        return $this;
    }
public function wildcard($val, $field=false) {
        $this->wildcard = ($field)
            ? array($field => $val)
            : $val;
        return $this;
    }
Add a wildcard to this query

@return \ElasticSearch\DSL\Query
@param $val
@param bool|string $field