Commit eede51a0 authored by Kai's avatar Kai

add topic detail

parent 167b05e2
......@@ -266,11 +266,11 @@ class TopicUtils(object):
{"terms":{"id":filter_topic_id_list}}
]
if current_topic_id != -1:
query_function_score["query"]["bool"]["must_not"] = {
query_function_score["query"]["bool"]["must_not"] = [{
"term": {
"id": current_topic_id
}
}
}]
if query is not None: # 搜索帖子
multi_fields = {
'description': 200,
......
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