# Nuanced synonyms

**URL:** <https://discuss.elastic.co/t/nuanced-synonyms/5100>\
**Category:** Elasticsearch\
**Created:** [August 9, 2011, 2:27pm UTC](https://discuss.elastic.co/t/nuanced-synonyms/5100 "2011-08-09T14:27:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppearcy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppearcy/32/980_2.png) [@ppearcy](https://discuss.elastic.co/u/ppearcy)\
**Post date:** [August 9, 2011, 2:27pm UTC](https://discuss.elastic.co/t/nuanced-synonyms/5100/1 "2011-08-09T14:27:56Z")

</div>

Hi,  
Not sure if this is possible, but does anyone know if it is possible  
to have a term in multiple synonym definitions, such that the they  
aren't associative? Here is my example:

bike, motorcycle  
bike, bicycle

The key thing is that I don't want bicycle and motorcycle to be  
synonyms for each other.

Thanks,  
Paul

---

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [August 9, 2011, 3:41pm UTC](https://discuss.elastic.co/t/nuanced-synonyms/5100/2 "2011-08-09T15:41:44Z")

</div>

Probably not really helpful but anyway: What you are probably looking for is  
called 'hypernyms' from a linguistic's point of view. Hypernyms define a 'is  
a kind of' relationship between a hyponym (the special term) and a hypernym  
(the broader term). In your case 'motorcycle' and 'bicycle' are a kind of  
'bike'. You would get motorcycles and bicycles if you search for bikes but  
you would not get bikes or motorbikes if you search for bicycles.

I had this requirement in a Lucene based project (2.4.x back then) and ended  
up implementing this as one step in a custom query parser (i.e. query time  
synonym expansion). I have not checked whether there are standard solutions  
available for that (I did not find one back then).

---

<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, 3:57am UTC](https://discuss.elastic.co/t/nuanced-synonyms/5100/3 "2017-07-06T03:57:45Z")

</div>


