---
title: ES|QL REPEAT function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2659/reference/query-languages/esql/functions-operators/string-functions/repeat
products:
  - Elasticsearch
---

# ES|QL REPEAT function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2659/reference/query-languages/esql/images/functions/repeat.svg)


## Parameters

<definitions>
  <definition term="string">
    String expression.
  </definition>
  <definition term="number">
    Number times to repeat.
  </definition>
</definitions>


## Description

Returns a string constructed by concatenating `string` with itself the specified `number` of times.

## Supported types


| string  | number  | result  |
|---------|---------|---------|
| keyword | integer | keyword |
| text    | integer | keyword |


## Example

```esql
ROW a = "Hello!"
| EVAL triple_a = REPEAT(a, 3)
```


| a:keyword | triple_a:keyword   |
|-----------|--------------------|
| Hello!    | Hello!Hello!Hello! |