public function geoDistanceRange($field, $from, $to, array $location, array $attributes = []) { $range = compact('from', 'to'); $query = new GeoDistanceRangeQuery($field, $range, $location, $attributes); $this->append($query); return $this; }