Commit 1d8c7990 authored by 段英荣's avatar 段英荣

add routing range filter

parent fafb0d5c
......@@ -257,7 +257,7 @@ class TopicUtils(object):
"query": {
"bool": {
"filter": [
# {"range": {"content_level": {"gte": low_content_level, "lte": 5}}},
{"range": {"content_level": {"gte": 4, "lte": 5}}},
# {"term": {"has_image":True}},
{"term": {"is_online": True}},
{"term": {"is_deleted": False}}
......@@ -435,7 +435,7 @@ class TopicUtils(object):
"query": {
"bool": {
"must": [
# {"range": {"content_level": {"gte": 3, "lte": 5}}},
{"range": {"content_level": {"gte": 4, "lte": 5}}},
{"term": {"is_online": True}},
{"term": {"is_deleted": False}}
],
......
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