# Highlighting not working with synonym filter

**URL:** <https://discuss.elastic.co/t/highlighting-not-working-with-synonym-filter/14071>\
**Category:** Elasticsearch\
**Created:** [October 23, 2013, 1:06pm UTC](https://discuss.elastic.co/t/highlighting-not-working-with-synonym-filter/14071 "2013-10-23T13:06:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [October 23, 2013, 1:06pm UTC](https://discuss.elastic.co/t/highlighting-not-working-with-synonym-filter/14071/1 "2013-10-23T13:06:39Z")

</div>

Steps to reproduce -

Index creation script

1. Download [http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz](http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz) ,  
extract wn\_s.pl and place it in config directory.
2. Create an index using this script -  
[https://gist.github.com/Vineeth-Mohan/7118283](https://gist.github.com/Vineeth-Mohan/7118283)
3. ./AboveScript localhost
4. Index a feed  
curl -XPOST '[http://localhost:9200/events/news](http://localhost:9200/events/news)' -d ' { "Events" : {  
"Event" : "large forest in large" } }'
5. Execute this search - [https://gist.github.com/Vineeth-Mohan/7118312](https://gist.github.com/Vineeth-Mohan/7118312)
6. Output obtained - [https://gist.github.com/Vineeth-Mohan/7118329](https://gist.github.com/Vineeth-Mohan/7118329)

Observation - Received "large forest in  
large" rather than "large forest in  
large" for searching big ( big is present in the synonym file)

Thanks  
Vineeth

--  
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:11am UTC](https://discuss.elastic.co/t/highlighting-not-working-with-synonym-filter/14071/2 "2017-07-06T02:11:01Z")

</div>


