"query": {
"function_score": {
"filter" : {
"bool" : {
"must" : [
{ "terms" : { "content" : "test"} }
]
}
},
"functions": [{
"exp": {
"date": {
"origin": "now",
"scale": "1d",
"decay" : 0.05
}
},
"script_score": {
"script": "_score * 10",
"lang":"groovy"
}
}],
"score_mode": "multiply"
}
}}
"functions" scores do not multiply. Score is calculated only using last function. If I swap places "exp" with "script_score", "exp" score will be shown. What is the problem? Notice: "script_score" is just a dummy function.