There was on error in a query. It should be:
    {"exp": {
        "date": {
              "origin": "now",
              "scale": "1d",
              "decay" : 0.05
        }
    }},
    {"script_score": {
        "script": "_score * 10",
        "lang":"groovy"
    }}

On Tuesday, December 16, 2014 10:24:50 AM UTC+2, 
[email protected] wrote:
>
> "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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/f0ac8e61-4e44-4cd8-a470-0885357dacf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to