Commit 9541e833 authored by 段英荣's avatar 段英荣

modify

parent 18ce7fbb
...@@ -58,17 +58,23 @@ class PickUtils(object): ...@@ -58,17 +58,23 @@ class PickUtils(object):
filter_term_list = cls.___get_filter_term_list(have_read_pick_celebrity_ids) filter_term_list = cls.___get_filter_term_list(have_read_pick_celebrity_ids)
q = dict() q = dict()
q["query"] = { q["query"] = {
"bool":{ "function_score":{
"must_not":{ "query":{
"terms":{ "bool": {
"id":have_read_pick_celebrity_ids "must_not": {
"terms": {
"id": have_read_pick_celebrity_ids
}
},
"must": [
{"term": {"pick_id_list": pick_id}},
{"term": {"is_online": True}},
{"term": {"is_deleted": False}}
]
} }
}, },
"must":[ "random_score":{},
{"term":{"pick_id_list":pick_id}}, "boost_mode":"replace"
{"term":{"is_online":True}},
{"term":{"is_deleted":False}}
]
} }
} }
q["_source"] = { q["_source"] = {
......
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