Commit 77027730 authored by 段英荣's avatar 段英荣

modify

parent c125422c
...@@ -387,10 +387,13 @@ class TopicUtils(object): ...@@ -387,10 +387,13 @@ class TopicUtils(object):
"query":{ "query":{
"bool":{ "bool":{
"must": [ "must": [
{"range": {"content_level": {"gte": 3, "lte": 5}}}, #{"range": {"content_level": {"gte": 3, "lte": 5}}},
{"term": {"is_online": True}}, {"term": {"is_online": True}},
{"term": {"is_deleted": False}}, {"term": {"is_deleted": False}},
{"term": {"tag_list":tag_id}} {"term": {"tag_list":tag_id}}
],
"must_not":[
{"terms": {"content_level": [1,2]}}
] ]
} }
}, },
......
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