Commit f130cb26 authored by kai's avatar kai

revise topic detail

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