Commit 167b05e2 authored by Kai's avatar Kai

add topic detail

parent dd7efe57
......@@ -205,6 +205,7 @@ class TopicUtils(object):
}
)
if current_topic_id != -1:
if len(topic_tag_list) > 0:
functions_list.append(
{
......@@ -264,7 +265,12 @@ class TopicUtils(object):
query_function_score["query"]["bool"]["must_not"] = [
{"terms":{"id":filter_topic_id_list}}
]
if current_topic_id != -1:
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