2013-08-28 19:24:34 -04:00
|
|
|
[[query-dsl-custom-boost-factor-query]]
|
|
|
|
=== Custom Boost Factor Query
|
|
|
|
|
2013-09-04 15:59:46 -04:00
|
|
|
deprecated[1.00.Beta,Replaced by <<query-dsl-function-score-query>>]
|
|
|
|
|
2013-08-28 19:24:34 -04:00
|
|
|
`custom_boost_factor` query allows to wrap another query and multiply
|
|
|
|
its score by the provided `boost_factor`. This can sometimes be desired
|
|
|
|
since `boost` value set on specific queries gets normalized, while this
|
|
|
|
query boost factor does not.
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
--------------------------------------------------
|
|
|
|
"custom_boost_factor" : {
|
|
|
|
"query" : {
|
|
|
|
....
|
|
|
|
},
|
|
|
|
"boost_factor" : 5.2
|
|
|
|
}
|
|
|
|
--------------------------------------------------
|