public function regexp($field, $regex, array $attributes = []) { $query = new RegexpQuery($field, $regex, $attributes); $this->append($query); return $this; }