Commit 42d56407 authored by 段英荣's avatar 段英荣

remove has_video

parent d964c416
...@@ -240,24 +240,24 @@ class TopicUtils(object): ...@@ -240,24 +240,24 @@ class TopicUtils(object):
{"term": {"has_image":True}}, {"term": {"has_image":True}},
{"term": {"is_online": True}}, {"term": {"is_online": True}},
{"term": {"is_deleted": False}} {"term": {"is_deleted": False}}
], ]
"should": [ # "should": [
{ # {
"bool":{ # "bool":{
"must":[ # "must":[
{"term":{"has_image":True}}, # {"term":{"has_image":True}},
{"term": {"has_video": False}} # {"term": {"has_video": False}}
] # ]
} # }
},{ # },{
"bool":{ # "bool":{
"must":{ # "must":{
"term":{"has_video":True} # "term":{"has_video":True}
} # }
} # }
} # }
], # ],
"minimum_should_match":1 # "minimum_should_match":1
} }
}, },
"score_mode": "sum", "score_mode": "sum",
......
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