Issue in Boosting Query (Assigning negative boost)

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?

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