# How to use Function score instead of boost for the below query

**URL:** https://discuss.elastic.co/t/how-to-use-function-score-instead-of-boost-for-the-below-query/26636
**Category:** Elasticsearch
**Created:** [July 31, 2015, 10:55am UTC](https://discuss.elastic.co/t/how-to-use-function-score-instead-of-boost-for-the-below-query/26636 "2015-07-31T10:55:47Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vaniaravinda](https://avatars.discourse-cdn.com/v4/letter/v/7993a0/32.png) [@vaniaravinda](https://discuss.elastic.co/u/vaniaravinda)
#### Post date: [July 31, 2015, 10:55am UTC](https://discuss.elastic.co/t/how-to-use-function-score-instead-of-boost-for-the-below-query/26636/1 "2015-07-31T10:55:47Z")

</div>

Hi all,

I found in one of the article that Boost is Deprecated in 1.0.0.RC1. See Function score instead of boost. Can someone please let me know how to use the Function score in my below query.

(  
(  
TITLE:"same old song and \(dance)"^100  
OR (  
TITLE:same~0.8 AND TITLE:old~0.8 AND TITLE:song~0.8 AND TITLE:and~0.8 AND TITLE:??dance?~0.8  
)^50  
OR (  
TITLE:same~0.5 AND TITLE:old~0.5 AND TITLE:song~0.5 AND TITLE:and~0.5 AND TITLE:??dance?~0.5  
)^10  
OR TITLE:"same old song and "~3^7  
)^500  
AND (  
COMPOSERS:perry ~2^2 OR COMPOSERS:tallarico ~2^2 OR COMPOSERS:perry, tallarico~2^2  
)  
)^100

Thanks,  
Vani Aravinda

---

<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 5, 2017, 11:58pm UTC](https://discuss.elastic.co/t/how-to-use-function-score-instead-of-boost-for-the-below-query/26636/2 "2017-07-05T23:58:00Z")

</div>


