# 0.90.1: when using match\_phrase highlighting returns sometimes the whole text

**URL:** <https://discuss.elastic.co/t/0-90-1-when-using-match-phrase-highlighting-returns-sometimes-the-whole-text/12722>\
**Category:** Elasticsearch\
**Created:** [July 9, 2013, 3:18pm UTC](https://discuss.elastic.co/t/0-90-1-when-using-match-phrase-highlighting-returns-sometimes-the-whole-text/12722 "2013-07-09T15:18:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/max/32/2236_2.png) [@max](https://discuss.elastic.co/u/max)\
**Post date:** [July 9, 2013, 3:18pm UTC](https://discuss.elastic.co/t/0-90-1-when-using-match-phrase-highlighting-returns-sometimes-the-whole-text/12722/1 "2013-07-09T15:18:59Z")

</div>

Hi,

in 0.90.1 when i use the following query:

"match": {  
"text": {  
"query": "this is a text",  
"type": "phrase",  
"slope: 100  
"prefix\_length":3  
}  
}

with this highlight settings:  
"highlight": {  
"pre\_tags":[""],  
"post\_tags"[""],  
"fields":{  
"text":{  
"fragment\_size": 180,  
"number\_of\_fragments":1  
}  
}  
}

i get quite often the full text (highlighted) instead of the fragment. When  
i change it back to a "normal" match-query it is fine.

the database is new indexed with 0.90.0.

Any ideas why?

Thank you,  
Max

--  
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:27am UTC](https://discuss.elastic.co/t/0-90-1-when-using-match-phrase-highlighting-returns-sometimes-the-whole-text/12722/2 "2017-07-06T02:27:27Z")

</div>


