Commit cc8bb647 authored by lixiaofang's avatar lixiaofang

修改搜索

parent 039e2627
......@@ -18,4 +18,4 @@ def logging_exception(send_to_sentry=True):
# send exception info to sentry, fail silently
_sentry_client.captureException()
except:
pass
passraven.contrib.django.raven_compat.models
......@@ -977,7 +977,12 @@ class TopicUtils(object):
"match": {k: v}
})
if k in ["create_time_gte", "create_time_lte"]:
elif k == "virtual_content_level":
f.append({
"match": {k: v}
})
elif k in ["create_time_gte", "create_time_lte"]:
if k == "create_time_gte":
op = "gte"
......@@ -992,12 +997,6 @@ class TopicUtils(object):
}
})
elif k == "virtual_content_level":
f.append({
"match": {k: v}
})
else:
if isinstance(v, list):
......
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