# Overriding boundary character for highlighter

**URL:** <https://discuss.elastic.co/t/overriding-boundary-character-for-highlighter/12805>\
**Category:** Elasticsearch\
**Created:** [July 16, 2013, 9:02am UTC](https://discuss.elastic.co/t/overriding-boundary-character-for-highlighter/12805 "2013-07-16T09:02:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMLAN](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@AMLAN](https://discuss.elastic.co/u/AMLAN)\
**Post date:** [July 16, 2013, 9:02am UTC](https://discuss.elastic.co/t/overriding-boundary-character-for-highlighter/12805/1 "2013-07-16T09:02:28Z")

</div>

Hi guys,

I have been trying to use ES highlighter with boundary character ~( tild), but it's not working out for me.  
Below is my sample text from field Text.

~Anmol JewellersRudrakshahtml~ मुखी रुद्राक्ष का सतारुढ़ ग्रह~ ~चौदह मुखी रुद्राक्ष के लिए अनुशंसित~ धन~ ~Anmol Jewellers and Ratna Kendra~

**Query:**

{  
"fields": [  
"Text"  
],  
"from": 0,  
"size": 10,  
"query": {  
"multi\_match": {  
"query": "मुखी रुद्राक्ष",  
"fields": [  
"Text"  
]  
}  
},  
"highlight": {  
"order": "score",  
"fields": {  
"A18": {  
"boundary\_max\_scan": 200,  
"number\_of\_fragments": 1,  
"fragment\_size": 60,  
"boundary\_chars": "~",  
"fragment\_offset": 0  
}  
}  
}  
}

**Result:**  
JewellersRudrakshahtml~ मुखी रुद्राक्ष का सतारुढ़ ग्रह~ ~चौदह मुखी रुद्राक्ष के लिए

I have gone through following related post as well.

[http://elasticsearch-users.115913.n3.nabble.com/highlight-whole-sentence-td4022069.html#a4022077  
 ](http://elasticsearch-users.115913.n3.nabble.com/highlight-whole-sentence-td4022069.html#a4022077)

I feel that fragments are not been created properly. Where am I going wrong ?

Thanks  
Amlan

---

<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/overriding-boundary-character-for-highlighter/12805/2 "2017-07-06T02:26:16Z")

</div>


