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

remove has_video

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