public function lessThan($field, $end) { $query = ['range' => [$field => ['lt' => $end]]]; $this->merge($query); return $this; }