# Synonyms boosting

**URL:** <https://discuss.elastic.co/t/synonyms-boosting/10275>\
**Category:** Elasticsearch\
**Created:** [January 9, 2013, 9:22am UTC](https://discuss.elastic.co/t/synonyms-boosting/10275 "2013-01-09T09:22:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![q42jaap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/q42jaap/32/2241_2.png) [@q42jaap](https://discuss.elastic.co/u/q42jaap)\
**Post date:** [January 9, 2013, 9:22am UTC](https://discuss.elastic.co/t/synonyms-boosting/10275/1 "2013-01-09T09:22:02Z")

</div>

Hi there,

Is it possible to have synonyms for a term boosted (with a value lower than  
1)?

An example would be a car-rental system, where you can specify the class of  
the car:  
economic, medium, van, luxury etc.

No if somebody searches for economic, and applies a filter for  
airconditioning (and maybe a bunch of other things), it could happen that  
there is no availability.  
I would like to be able to do one query that has a fallback that also  
allows the term medium when you search for economic, but I want it boosted  
with a certain value. So a standard synonym file wouldn't quite do the  
trick.

I could of course have a query-time expansion of the synonyms with a SHOULD  
boolean query and boost the individual terms I want to match, but that  
would involve lots of complex query building. It would be super nice if I  
could let ES handle this...

Does anyone have experience with build this kind of system with  
ElasticSearch? Any thoughts on how else to implement it?

Thanks  
Jaap

--

---

<div class="post-metadata">

**Author:** ![q42jaap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/q42jaap/32/2241_2.png) [@q42jaap](https://discuss.elastic.co/u/q42jaap)\
**Post date:** [January 9, 2013, 9:27am UTC](https://discuss.elastic.co/t/synonyms-boosting/10275/2 "2013-01-09T09:27:20Z")

</div>

I would like to add that I've heard from a former colleage that they  
implemented (a long time ago) this kind of stuff for a library system  
(which wasn't built on Lucene). They took a vector approach (which is a lot  
like boosting) and they could compare the search vector with the vectors of  
documents and apply multi-dimensional calculations towards comparing the  
vectors.

I guess this is more of a lucene question anyway, but maybe ElasticSearch  
has already something for it I don't know about?

--

---

<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:57am UTC](https://discuss.elastic.co/t/synonyms-boosting/10275/3 "2017-07-06T02:57:17Z")

</div>


