At the moment I'm using queries like the following with positive boosting of a term.
"query": {
"bool" : {
"must" : {
"term" : { "title" : {value :"word", boost: 2.0}}
}
}
}
This type of query is described here. I would like to know if it is possible to use negative boosting of term just like the above, but instead of 2.0 a -2.0. So like this:
"query": {
"bool" : {
"must" : {
"term" : { "title" : {value :"word", boost: -2.0}}
}
}
}
I couldn't find any documentation on it. It only tells the default value for boost is 1.0. And all examples use positive boosting. There is however some kind of negative boost ( described here), but that is boosting queries instead of terms.