# Highlighting and Word delimiter

**URL:** <https://discuss.elastic.co/t/highlighting-and-word-delimiter/23868>\
**Category:** Elasticsearch\
**Created:** [June 17, 2015, 7:03pm UTC](https://discuss.elastic.co/t/highlighting-and-word-delimiter/23868 "2015-06-17T19:03:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivamurugan](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sivamurugan](https://discuss.elastic.co/u/sivamurugan)\
**Post date:** [June 17, 2015, 7:03pm UTC](https://discuss.elastic.co/t/highlighting-and-word-delimiter/23868/1 "2015-06-17T19:03:24Z")

</div>

I am facing a strange issue with the combination using word delimiter and highlighter.

I have a String field named **model\_name** which is analyzed at the field level using word delimiter tokenizer at both index and search time.  
I have 2 other field named **style\_name** , **vin\_no**.

Sample Data  
model\_name : Silverado 2500HD  
Style : Sedan 4 dr  
vin\_no : JTHKD5BH4F2236174

When i search my mapping with the vin no "JTHKD5BH4F2236174", it matches the record as expected but while highlighting it highlights Style along with vin\_no. In the style field it matches the character 4.

I know word delimiter splits the number and characters respectively but since i have it as a field level analyzer wont that be applied only to the model\_name field, how is elastic search really highlighting the style field

---

<div class="post-metadata">

**Author:** ![sivamurugan](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@sivamurugan](https://discuss.elastic.co/u/sivamurugan)\
**Post date:** [June 26, 2015, 5:55pm UTC](https://discuss.elastic.co/t/highlighting-and-word-delimiter/23868/2 "2015-06-26T17:55:15Z")

</div>

Have a theory can someone validate it, in a search execution querying and highlighting are 2 separate process.

ES finds the matched documents based on the search term and on the resultant dataset it applies all the search token to identify the fields to highlight.

Even though while searching ES applies analyzer to the mapped field alone but it gathers the all the newly formed search token and re run it against matched documents to highlight the dataset

is this right?

---

<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, 12:05am UTC](https://discuss.elastic.co/t/highlighting-and-word-delimiter/23868/3 "2017-07-06T00:05:08Z")

</div>


