Elasticsearch functions script_score only last effective

this is my request struct

{
"from":0,
"size":100,
"query":{
"function_score":{
"query":{
"bool":{
"must":{
"dis_max":{
"tie_breaker":0.3,
"queries":[
{
"match":{
"class_name":{
"query":"小组课名称",
"type":"boolean",
"analyzer":"ik"
}
}
}
]
}
}
}
},
"functions":[
{
"script_score":{
"script":"return 500;",
"lang":"groovy"
},
"script_score":{
"script":"return 10;",
"lang":"groovy"
}
}
],
"score_mode":"sum",
"boost_mode":"replace"
}
},
"fields":"_source",
"sort":[
{
"class_id":{
"order":"desc"
}
}
],
"track_scores":true
}

question is score is 10, i use "score_mode":"sum", is not useful why????
it seems only last function score is useful haha ?

in my opion score may 510 , because i use screo_mode:sum

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.