Commit cba922ce authored by 段英荣's avatar 段英荣

Merge branch 'revise_topic_detail' into 'master'

revise topic detail

See merge request alpha/physical!420
parents 191864a8 f130cb26
......@@ -721,7 +721,7 @@ class TopicUtils(object):
if len(topic_tag_list) > 0:
query_function_score["query"]["bool"]["filter"] = {
"terms": {
"tag_list": topic_tag_list
"edit_tag_list": topic_tag_list
}
}
if topic_user_id != -1:
......@@ -740,10 +740,10 @@ class TopicUtils(object):
}
# "includes": ["id", "pictorial_id", "user_id", "_score", "create_time", "content_level"]
# q['sort'] = [
# {"content_level": {"order": "desc"}},
q['sort'] = [
{"latest_reply_time": {"order": "desc"}},
# {"create_time": {"order": "desc"}}
# ]
]
result_dict = ESPerform.get_search_results(es_cli_obj, sub_index_name=index_type, query_body=q, size=size,
routing=routing)
......
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