Commit 07223a5b authored by 段英荣's avatar 段英荣

Merge branch 'duanyr' into 'master'

modify script to expression

See merge request !71
parents 88276024 57791ec8
...@@ -431,8 +431,10 @@ class TopicUtils(object): ...@@ -431,8 +431,10 @@ class TopicUtils(object):
"_script":{ "_script":{
"type":"number", "type":"number",
"script":{ "script":{
"lang":"painless", "lang": "expression",
"source":"_score+params._source.offline_score+params._source.manual_score" "source": "_score+doc['offline_score']+doc['manual_score']"
# "lang":"painless",
# "source":"_score+params._source.offline_score+params._source.manual_score"
}, },
"order":"desc" "order":"desc"
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment