"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.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/efcf20a5-b2f5-451d-82b5-220c3fb41216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.