Commit 01428384 authored by 段英荣's avatar 段英荣

modify home_recommend score

parent ff118e24
...@@ -188,7 +188,7 @@ class TopicUtils(object): ...@@ -188,7 +188,7 @@ class TopicUtils(object):
query_function_score = { query_function_score = {
"query": { "query": {
"bool": { "bool": {
"must": [ "filter": [
{"range": {"content_level": {"gte": low_content_level, "lte": 5}}}, {"range": {"content_level": {"gte": low_content_level, "lte": 5}}},
{"term": {"has_image":True}}, {"term": {"has_image":True}},
{"term": {"is_online": True}}, {"term": {"is_online": True}},
......
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