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

modify

parent af85b73e
...@@ -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