# Fetching part of content in full content search in a field

**URL:** <https://discuss.elastic.co/t/fetching-part-of-content-in-full-content-search-in-a-field/12782>\
**Category:** Elasticsearch\
**Created:** [July 13, 2013, 7:12pm UTC](https://discuss.elastic.co/t/fetching-part-of-content-in-full-content-search-in-a-field/12782 "2013-07-13T19:12:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dsbahree](https://avatars.discourse-cdn.com/v4/letter/d/96bed5/32.png) [@dsbahree](https://discuss.elastic.co/u/dsbahree)\
**Post date:** [July 13, 2013, 7:12pm UTC](https://discuss.elastic.co/t/fetching-part-of-content-in-full-content-search-in-a-field/12782/1 "2013-07-13T19:12:07Z")

</div>

i have a field which has multiline data. i want to fetch a part of hit.  
eg: field:"this is elasticsearch. it is based on lucene."  
now if i exactsearch on this field for "lucene"  
then it should show me "it is based on lucene"

thank you in advance.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 14, 2013, 9:54am UTC](https://discuss.elastic.co/t/fetching-part-of-content-in-full-content-search-in-a-field/12782/2 "2013-07-14T09:54:41Z")

</div>

See [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/highlighting/)

On 13 July 2013 21:12, [dsbahree@gmail.com](mailto:dsbahree@gmail.com) wrote:

> i have a field which has multiline data. i want to fetch a part of hit.  
> eg: field:"this is elasticsearch. it is based on lucene."  
> now if i exactsearch on this field for "lucene"  
> then it should show me "it is based on lucene"
> 
> thank you in advance.
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:26am UTC](https://discuss.elastic.co/t/fetching-part-of-content-in-full-content-search-in-a-field/12782/3 "2017-07-06T02:26:33Z")

</div>


