public function whereRange(string $field, $gt = null, $lt = null, $format = null, $gtConfig = "gte", $ltConfig = "lte")
    {
        if($gt && $lt) {
            $field = [];

            if($gt) {
                $field[$gtConfig] = $gt;
            }

            if($lt) {
                $field[$ltConfig] = $lt;
            }

            if($format) {
                $field["format"] = $format;
            }

            $param = [
                "range" => [
                    $field
                ]
            ];

            $this->elasticQuery[] = $param;
        }

        return $this;
    }