# Issue in Boosting Query (Assigning negative boost)

**URL:** <https://discuss.elastic.co/t/issue-in-boosting-query-assigning-negative-boost/185181>\
**Category:** Elasticsearch\
**Created:** [June 11, 2019, 12:05pm UTC](https://discuss.elastic.co/t/issue-in-boosting-query-assigning-negative-boost/185181 "2019-06-11T12:05:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikita.jain](https://avatars.discourse-cdn.com/v4/letter/n/96bed5/32.png) [@nikita.jain](https://discuss.elastic.co/u/nikita.jain)\
**Post date:** [June 11, 2019, 12:05pm UTC](https://discuss.elastic.co/t/issue-in-boosting-query-assigning-negative-boost/185181/1 "2019-06-11T12:05:43Z")

</div>

Hello,

I'm trying to demote certain search results by providing a negative boost to the results containing certain terms. But the negative boost factor does not affect the score.  
Following is my query:

GET /\_search  
{  
"query": {  
"boosting" : {  
"positive" : {  
"term" : {  
"fields.html|description|system$" : "test"  
}  
},  
"negative" : {  
"term" : {  
"fields.str|title|system$" : "stale"  
}  
},  
"negative\_boost" : "0.0001"  
}  
}  
}

The search results are the same with or without the negative boost. Is there some other way to achieve this?

---

<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 9, 2019, 12:08pm UTC](https://discuss.elastic.co/t/issue-in-boosting-query-assigning-negative-boost/185181/2 "2019-07-09T12:08:46Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
