public function wildcard($key, $value, $bool = "must", $filter = false, array $params = []) {
        if (is_array($key)) {
            return $this->multiWildcard($key, $value, $bool, $filter, $params);
        }
        if (is_array($value)) {
            return $this->wildcards($key, $value, $bool, $filter, $params);
        }
        $this->addBool($this->makeFilteredQuery(["wildcard" => [$key => ["wildcard" => $value]]], $filter), $bool, $filter, $params);
        return $this;
    }