# Very excessive highlight fragments

**URL:** <https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620>\
**Category:** Elasticsearch\
**Created:** [June 14, 2011, 6:59pm UTC](https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620 "2011-06-14T18:59:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Mill](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_mill/32/3124_2.png) [@Eric\_Mill](https://discuss.elastic.co/u/Eric_Mill)\
**Post date:** [June 14, 2011, 6:59pm UTC](https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620/1 "2011-06-14T18:59:49Z")

</div>

The opposite of my other problem - sometimes when I ask for highlighting  
back from ElasticSearch, the highlight excerpt is much, much larger than my  
requested fragment size. In one case, I got a highlight excerpt of over  
34,000 characters, when my requested fragment size was only 200.

Any ideas of how I can combat this?

-- Eric

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [June 14, 2011, 7:54pm UTC](https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620/2 "2011-06-14T19:54:37Z")

</div>

Hi,

was it a single valued field of multi valued field? Any chance you can  
provide recreation script for this?

Lukas

On Tue, Jun 14, 2011 at 8:59 PM, Eric Mill [kprojection@gmail.com](mailto:kprojection@gmail.com) wrote:

> The opposite of my other problem - sometimes when I ask for highlighting  
> back from Elasticsearch, the highlight excerpt is much, much larger than my  
> requested fragment size. In one case, I got a highlight excerpt of over  
> 34,000 characters, when my requested fragment size was only 200.
> 
> Any ideas of how I can combat this?
> 
> -- Eric

---

<div class="post-metadata">

**Author:** ![Eric\_Mill](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_mill/32/3124_2.png) [@Eric\_Mill](https://discuss.elastic.co/u/Eric_Mill)\
**Post date:** [June 14, 2011, 8:17pm UTC](https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620/3 "2011-06-14T20:17:05Z")

</div>

The field is a single value field, just one big string. Not sure what you  
mean by recreation script - but I can try to provide more details if needed.  
I haven't exposed the Elasticsearch port publicly yet, but I could possibly  
do that if it helped with debugging.

-- Eric

On Tue, Jun 14, 2011 at 3:54 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Hi,
> 
> was it a single valued field of multi valued field? Any chance you can  
> provide recreation script for this?
> 
> Lukas
> 
> On Tue, Jun 14, 2011 at 8:59 PM, Eric Mill [kprojection@gmail.com](mailto:kprojection@gmail.com) wrote:
> 
> > The opposite of my other problem - sometimes when I ask for highlighting  
> > back from Elasticsearch, the highlight excerpt is much, much larger than my  
> > requested fragment size. In one case, I got a highlight excerpt of over  
> > 34,000 characters, when my requested fragment size was only 200.
> > 
> > Any ideas of how I can combat this?
> > 
> > -- Eric

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [June 14, 2011, 8:37pm UTC](https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620/4 "2011-06-14T20:37:16Z")

</div>

Recreation script is a sequence of curl commands that can be used by others  
to get the same issue. Check [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help/) for more  
info and examples about recreation script.

On Tue, Jun 14, 2011 at 10:17 PM, Eric Mill [kprojection@gmail.com](mailto:kprojection@gmail.com) wrote:

> The field is a single value field, just one big string. Not sure what you  
> mean by recreation script - but I can try to provide more details if needed.  
> I haven't exposed the Elasticsearch port publicly yet, but I could possibly  
> do that if it helped with debugging.
> 
> -- Eric
> 
> On Tue, Jun 14, 2011 at 3:54 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > Hi,
> > 
> > was it a single valued field of multi valued field? Any chance you can  
> > provide recreation script for this?
> > 
> > Lukas
> > 
> > On Tue, Jun 14, 2011 at 8:59 PM, Eric Mill [kprojection@gmail.com](mailto:kprojection@gmail.com) wrote:
> > 
> > > The opposite of my other problem - sometimes when I ask for highlighting  
> > > back from Elasticsearch, the highlight excerpt is much, much larger than my  
> > > requested fragment size. In one case, I got a highlight excerpt of over  
> > > 34,000 characters, when my requested fragment size was only 200.
> > > 
> > > Any ideas of how I can combat this?
> > > 
> > > -- Eric

---

<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, 4:03am UTC](https://discuss.elastic.co/t/very-excessive-highlight-fragments/4620/5 "2017-07-06T04:03:37Z")

</div>


