Commit 323898fc authored by 段英荣's avatar 段英荣

modify

parent 29efc218
...@@ -182,6 +182,14 @@ class TopicUtils(object): ...@@ -182,6 +182,14 @@ class TopicUtils(object):
} }
}, },
"weight": 1000 "weight": 1000
},
{
"filter": {
"term": {
"is_excellent": 1
}
},
"weight": 500
} }
] ]
...@@ -219,7 +227,7 @@ class TopicUtils(object): ...@@ -219,7 +227,7 @@ class TopicUtils(object):
{ {
"filter": {"bool": { "filter": {"bool": {
"should": {"terms": {"tag_list": topic_tag_list}}}}, "should": {"terms": {"tag_list": topic_tag_list}}}},
"weight": 10000 "weight": 2000
} }
) )
...@@ -228,7 +236,7 @@ class TopicUtils(object): ...@@ -228,7 +236,7 @@ class TopicUtils(object):
{ {
"filter": {"bool": { "filter": {"bool": {
"should": {"term": {"user_id": topic_user_id}}}}, "should": {"term": {"user_id": topic_user_id}}}},
"weight": 5000 "weight": 1500
} }
) )
query_function_score = { query_function_score = {
......
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