# Elastic 2.4 - Get substring of text field

**URL:** <https://discuss.elastic.co/t/elastic-2-4-get-substring-of-text-field/213450>\
**Category:** Elasticsearch\
**Created:** [December 31, 2019, 12:57pm UTC](https://discuss.elastic.co/t/elastic-2-4-get-substring-of-text-field/213450 "2019-12-31T12:57:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![orenco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/orenco/32/60137_2.png) [@orenco](https://discuss.elastic.co/u/orenco)\
**Post date:** [December 31, 2019, 12:57pm UTC](https://discuss.elastic.co/t/elastic-2-4-get-substring-of-text-field/213450/1 "2019-12-31T12:57:18Z")

</div>

I'm using Elastic 2.4 . One of the fields I need to get is very long text, and I'm trying to get only a short part of it. I've tried substring, but it doesn't work. I'm not sure I tried it correctly or if it is supported in 2.4 . Can someone help ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 28, 2020, 12:57pm UTC](https://discuss.elastic.co/t/elastic-2-4-get-substring-of-text-field/213450/2 "2020-01-28T12:57:22Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
