# Getting matched synonym

**URL:** <https://discuss.elastic.co/t/getting-matched-synonym/19928>\
**Category:** Elasticsearch\
**Created:** [September 23, 2014, 5:47pm UTC](https://discuss.elastic.co/t/getting-matched-synonym/19928 "2014-09-23T17:47:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rc1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@Rc1](https://discuss.elastic.co/u/Rc1)\
**Post date:** [September 23, 2014, 5:47pm UTC](https://discuss.elastic.co/t/getting-matched-synonym/19928/1 "2014-09-23T17:47:11Z")

</div>

Hi,

I would like to get the following result, but cant seem to find a solution:

I have an index with a field which has f.i the value: laptop  
I have a synonym filter which maps laptop to notebook

This all works fine, but what i would like is to show the user 'notebook'  
as autcomplete suggestion when he types 'note', not laptop. since this is  
confusing.  
So is there a way the get the autocomplete value of the synonym?

A hacky solution would be to call the analezer with the proposed suggest  
word(laptop). which will then give me notebook as synonym. But this means 2  
calls and doesnt seem like a neat solution.

Thx,  
Rc

--  
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/3c96246b-d4ce-4ff3-89d8-480d6ca36828%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3c96246b-d4ce-4ff3-89d8-480d6ca36828%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:00am UTC](https://discuss.elastic.co/t/getting-matched-synonym/19928/2 "2017-07-06T01:00:23Z")

</div>


