# Truncate response

**URL:** <https://discuss.elastic.co/t/truncate-response/22378>\
**Category:** Elasticsearch\
**Created:** [February 25, 2015, 10:20am UTC](https://discuss.elastic.co/t/truncate-response/22378 "2015-02-25T10:20:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_3](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@James\_3](https://discuss.elastic.co/u/James_3)\
**Post date:** [February 25, 2015, 10:20am UTC](https://discuss.elastic.co/t/truncate-response/22378/1 "2015-02-25T10:20:21Z")

</div>

Hi,

I am just wondering if there is an efficient and straight forward way to  
tell elasticsearch to truncate the reponse it sends. For example one of my  
fields is a "description". Is it possible to have it to when it sends the  
search response it only sends the first 200 charts of the description (and  
yet still keeps the full description in the index to search against).

Any help would be appreciated as searches on the subject turned up nothing.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/24d86390-5810-4e9e-b68a-efbe6c8b3751%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/24d86390-5810-4e9e-b68a-efbe6c8b3751%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:30am UTC](https://discuss.elastic.co/t/truncate-response/22378/2 "2017-07-06T00:30:16Z")

</div>

Closed on July 6, 2017, 12:30am UTC


