# How to receive part of the text field?

**URL:** https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229
**Category:** Elasticsearch
**Created:** [August 12, 2014, 12:17pm UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229 "2014-08-12T12:17:48Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Dmitriy\_Bashkalin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitriy_bashkalin/32/46359_2.png) [@Dmitriy\_Bashkalin](https://discuss.elastic.co/u/Dmitriy_Bashkalin)
#### Post date: [August 12, 2014, 12:17pm UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229/1 "2014-08-12T12:17:48Z")

</div>

Hello.  
There is a field with large amount of text. How I can get part of value,  
such as 200KB? By analogy with the from () / size ().  
Like as "Give me the first 200KB part of object with this Id"

--  
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/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)
#### Post date: [August 12, 2014, 10:38pm UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229/2 "2014-08-12T22:38:24Z")

</div>

If the 200kb number is fixed, then the simplest solution would be to store  
that content separately in a new field. It does not need to be analyzed,  
just stored.

Perhaps highlighters might work. Never used them, so it is just a guess.

Cheers,

Ivan  
On Aug 12, 2014 8:17 AM, "Dmitriy Bashkalin" [bashkalin@gmail.com](mailto:bashkalin@gmail.com) wrote:

> Hello.  
> There is a field with large amount of text. How I can get part of value,  
> such as 200KB? By analogy with the from () / size ().  
> Like as "Give me the first 200KB part of object with this Id"
> 
> --  
> 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/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CALY%3DcQAa54%2B5hiB1R4twZ3Xwkb34QL56jHDmCzET1NNtn%2B4now%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAa54%2B5hiB1R4twZ3Xwkb34QL56jHDmCzET1NNtn%2B4now%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)
#### Post date: [August 12, 2014, 11:22pm UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229/3 "2014-08-12T23:22:25Z")

</div>

I imagine script field can do this.  
On Aug 12, 2014 6:38 PM, "Ivan Brusic" [ivan@brusic.com](mailto:ivan@brusic.com) wrote:

> If the 200kb number is fixed, then the simplest solution would be to store  
> that content separately in a new field. It does not need to be analyzed,  
> just stored.
> 
> Perhaps highlighters might work. Never used them, so it is just a guess.
> 
> Cheers,
> 
> Ivan  
> On Aug 12, 2014 8:17 AM, "Dmitriy Bashkalin" [bashkalin@gmail.com](mailto:bashkalin@gmail.com) wrote:
> 
> > Hello.  
> > There is a field with large amount of text. How I can get part of value,  
> > such as 200KB? By analogy with the from () / size ().  
> > Like as "Give me the first 200KB part of object with this Id"
> > 
> > --  
> > 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/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/bf664bcf-f936-4391-84d9-46cd26cefdd6%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CALY%3DcQAa54%2B5hiB1R4twZ3Xwkb34QL56jHDmCzET1NNtn%2B4now%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAa54%2B5hiB1R4twZ3Xwkb34QL56jHDmCzET1NNtn%2B4now%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAa54%2B5hiB1R4twZ3Xwkb34QL56jHDmCzET1NNtn%2B4now%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQAa54%2B5hiB1R4twZ3Xwkb34QL56jHDmCzET1NNtn%2B4now%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAPmjWd1TYg-SS%3Df9z%3DfpYoZMyDVjv\_pcnOVrmRNFa9ufq8H%2BaA%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd1TYg-SS%3Df9z%3DfpYoZMyDVjv_pcnOVrmRNFa9ufq8H%2BaA%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Dmitriy\_Bashkalin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitriy_bashkalin/32/46359_2.png) [@Dmitriy\_Bashkalin](https://discuss.elastic.co/u/Dmitriy_Bashkalin)
#### Post date: [August 13, 2014, 5:12am UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229/4 "2014-08-13T05:12:57Z")

</div>

Its seems that I put wrong question.  
I need get value of field piece by piece when it needed. Getting value at  
once strongly inhibits execution. So separate the value into few fields  
will not work.  
I'll read about highlighters. Also never used them.

thx for answer)

среда, 13 августа 2014 г., 2:38:37 UTC+4 пользователь Ivan Brusic написал:

> If the 200kb number is fixed, then the simplest solution would be to store  
> that content separately in a new field. It does not need to be analyzed,  
> just stored.
> 
> Perhaps highlighters might work. Never used them, so it is just a guess.
> 
> Cheers,
> 
> Ivan

--  
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/63536ac6-cf95-41bb-addd-9aab00c31181%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/63536ac6-cf95-41bb-addd-9aab00c31181%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Dmitriy\_Bashkalin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitriy_bashkalin/32/46359_2.png) [@Dmitriy\_Bashkalin](https://discuss.elastic.co/u/Dmitriy_Bashkalin)
#### Post date: [August 13, 2014, 5:57am UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229/5 "2014-08-13T05:57:24Z")

</div>

Can You tell me about performance? If I insert into script code, which take  
part of field value depending of "params"

среда, 13 августа 2014 г., 3:22:34 UTC+4 пользователь Nikolas Everett  
написал:

> I imagine script field can do this.

--  
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/8bb46200-8fee-4aee-a633-2911336e71c0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/8bb46200-8fee-4aee-a633-2911336e71c0%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, 1:09am UTC](https://discuss.elastic.co/t/how-to-receive-part-of-the-text-field/19229/6 "2017-07-06T01:09:03Z")

</div>


