# How can I split string in Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-can-i-split-string-in-elasticsearch/266576>\
**Category:** Elasticsearch\
**Created:** [March 8, 2021, 3:11pm UTC](https://discuss.elastic.co/t/how-can-i-split-string-in-elasticsearch/266576 "2021-03-08T15:11:25Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 9, 2021, 2:06am UTC](https://discuss.elastic.co/t/how-can-i-split-string-in-elasticsearch/266576/6 "2021-03-09T02:06:18Z")

</div>

Please provide a full script we can use to reproduce locally.

Again see the example in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). Please, try to keep the example as simple as possible. We basically need only one field here.

> **A full reproduction script is** something **anyone can copy and paste** in Kibana dev console, **click on the run button** to reproduce your use case.

---

_[View the full topic](https://discuss.elastic.co/t/how-can-i-split-string-in-elasticsearch/266576)._
