# Highlight analyzed field with stop words

**URL:** <https://discuss.elastic.co/t/highlight-analyzed-field-with-stop-words/15068>\
**Category:** Elasticsearch\
**Created:** [January 1, 2014, 1:32pm UTC](https://discuss.elastic.co/t/highlight-analyzed-field-with-stop-words/15068 "2014-01-01T13:32:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maya](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Maya](https://discuss.elastic.co/u/Maya)\
**Post date:** [January 1, 2014, 1:32pm UTC](https://discuss.elastic.co/t/highlight-analyzed-field-with-stop-words/15068/1 "2014-01-01T13:32:05Z")

</div>

Hi,

In the following query we perform exact match which includes stop word,  
which is not highlighted, since the highlight is performed on analyzed  
field:  
{  
"query": {  
"match": {  
"\_all": {  
"query": ""My name is""  
}  
}  
},  
"fields": [  
"\_source"  
],  
"highlight": {  
"fields": {  
"text.\*": {}  
}  
}  
}  
result: _My_ _name_ is .....  
If the match is not exact we do want to exclude the stop words from the  
highlighting. (That's why I don't think that defining our own analyzer will  
solve the problem)

Q 1. Is it possible in case of exact match the perform highlighting on  
\_source field with some parameters? We tried that and got no highlighting  
at all. Is there some other possibility?  
Q 2. Why do the words "My", "name" are highlighted separately? We use fvh  
since in the mapping we defined:  
template\_textEnglish: {  
mapping: {  
index: analyzed  
store: no  
analyzer: english  
type: string  
_term\_vector: with\_positions\_offsets_  
}  
match: text.English.\*  
}  
}

Any help would be appreciated.

Thanks.

--  
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/b8a99c46-eb77-4cd5-a6f1-adbbbe12a79d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b8a99c46-eb77-4cd5-a6f1-adbbbe12a79d%40googlegroups.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, 1:58am UTC](https://discuss.elastic.co/t/highlight-analyzed-field-with-stop-words/15068/2 "2017-07-06T01:58:50Z")

</div>


