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

modify

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