Commit e2b0a93a authored by 黄凯's avatar 黄凯

Merge branch 'hk' into 'test'

add topic detail

See merge request alpha/physical!293
parents 8c0f8626 eede51a0
......@@ -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