# Boost\_factor doesn't work under functions

**URL:** <https://discuss.elastic.co/t/boost-factor-doesnt-work-under-functions/58996>\
**Category:** Elasticsearch\
**Created:** [August 26, 2016, 1:51am UTC](https://discuss.elastic.co/t/boost-factor-doesnt-work-under-functions/58996 "2016-08-26T01:51:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![laesunk](https://avatars.discourse-cdn.com/v4/letter/l/aca169/32.png) [@laesunk](https://discuss.elastic.co/u/laesunk)\
**Post date:** [August 26, 2016, 1:51am UTC](https://discuss.elastic.co/t/boost-factor-doesnt-work-under-functions/58996/1 "2016-08-26T01:51:59Z")

</div>

Hello. i wrote a query for scoring integer field.  
but i faced with a problem while giving a weight to my script query(decay\_function)  
I read some docs(below). i found boost\_factor( under ES 1.3. i'm using 1.3 version)  
([https://www.elastic.co/guide/en/elasticsearch/reference/1.3/query-dsl-function-score-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.3/query-dsl-function-score-query.html))

but it is not multiplying a weight but changing script score to just a weight that i given (description : "static boost factor")  
I'm wondering it is working well or not? qeury is below

{  
"exp": {  
"read\_cnt": {  
"origin": "2478",  
"scale": "500",  
"offset": "0",  
"decay": 0.9  
}  
},  
"boost\_factor": 0.6  
}

---

<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, 10:25pm UTC](https://discuss.elastic.co/t/boost-factor-doesnt-work-under-functions/58996/2 "2017-07-05T22:25:05Z")

</div>


