Commit 4a514df6 authored by 段英荣's avatar 段英荣

modify

parent af85b73e
......@@ -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}}
]
# "should": [
# {
# "bool":{
# "must":[
# {"term":{"has_image":True}},
# {"term": {"has_video": False}}
# ]
# }
# },{
# "bool":{
# "must":{
# "term":{"has_video":True}
# }
# }
# }
# ],
# "minimum_should_match":1
}
},{
"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