# Why constant\_score not work with boost in elasticsearch

**URL:** <https://discuss.elastic.co/t/why-constant-score-not-work-with-boost-in-elasticsearch/52954>\
**Category:** Elasticsearch\
**Created:** [June 16, 2016, 5:56am UTC](https://discuss.elastic.co/t/why-constant-score-not-work-with-boost-in-elasticsearch/52954 "2016-06-16T05:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taruntyagi94](https://avatars.discourse-cdn.com/v4/letter/t/ac91a4/32.png) [@taruntyagi94](https://discuss.elastic.co/u/taruntyagi94)\
**Post date:** [June 16, 2016, 5:56am UTC](https://discuss.elastic.co/t/why-constant-score-not-work-with-boost-in-elasticsearch/52954/1 "2016-06-16T05:56:41Z")

</div>

Hi,

I am using constant score with query string but when i search with boost in constant\_score it always give score 1

this is my query

{  
"query":{  
"constant\_score":{  
"query":{  
"query\_string":{  
"query":"(_MOOLCHAND HEALTHCARE PVT.LTD_)",  
"fields":[  
"providerName",  
"email",  
"website"  
],  
"default\_operator":"OR"  
}  
},  
"boost":1000  
}  
}  
}

please tell me what's going wrong in this query

Thanks

---

<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:43pm UTC](https://discuss.elastic.co/t/why-constant-score-not-work-with-boost-in-elasticsearch/52954/2 "2017-07-05T22:43:28Z")

</div>


