# Keyword custom analyzer with highlighting is not working

**URL:** <https://discuss.elastic.co/t/keyword-custom-analyzer-with-highlighting-is-not-working/18317>\
**Category:** Elasticsearch\
**Created:** [June 25, 2014, 3:44am UTC](https://discuss.elastic.co/t/keyword-custom-analyzer-with-highlighting-is-not-working/18317 "2014-06-25T03:44:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![happyprg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/happyprg/32/681_2.png) [@happyprg](https://discuss.elastic.co/u/happyprg)\
**Post date:** [June 25, 2014, 3:44am UTC](https://discuss.elastic.co/t/keyword-custom-analyzer-with-highlighting-is-not-working/18317/1 "2014-06-25T03:44:02Z")

</div>

1. i test highlighting with my combine analyzer.

\<nabble\_img src="스크린샷\_2014-06-25\_오후\_2.png" border="0"/\>

but, Expected Doc Numbers id 9 is highlighting entire sentence.  
it's wrong.

1. i write this issue at combo analyzer plugin site

- [https://github.com/yakaz/elasticsearch-analysis-combo/issues/19](https://github.com/yakaz/elasticsearch-analysis-combo/issues/19)

1. and i tested more.  
curl -XGET '[http://10.101.57.97:10200/testindex/ITEM/9/\_termvector?pretty=true](http://10.101.57.97:10200/testindex/ITEM/9/_termvector?pretty=true)'  
"รองเท้า" : {  
"term\_freq" : 2,  
"tokens" : [ {  
"position" : 0,  
"start\_offset" : 0,  
"end\_offset" : 261  
}, {  
"position" : 0,  
"start\_offset" : 0,  
"end\_offset" : 261  
} ]  
},

2. it's tokens are below analyzer results.  
"custom\_foreign\_languages\_analyzer": {  
"type": "custom",  
"tokenizer": "keyword",  
"filter": [  
"compound\_word",  
"keep\_word",  
"thai\_stop\_custom",  
"english\_stop\_custom",  
"unique\_token\_filter"  
]  
},  
"custom\_foreign\_languages\_synonym\_analyzer": {  
"type": "custom",  
"tokenizer": "keyword",  
"filter": [  
"compound\_word",  
"keep\_word",  
"thai\_stop\_custom",  
"english\_stop\_custom",  
"synonym",  
"unique\_token\_filter"  
]  
}

is it impossible to highlighting with custom\_foreign\_languages\_synonym\_analyzer and custom\_foreign\_languages\_analyzer?

please somebody help me please.

---

<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:19am UTC](https://discuss.elastic.co/t/keyword-custom-analyzer-with-highlighting-is-not-working/18317/2 "2017-07-06T01:19:59Z")

</div>


