Commit 6cff25b7 authored by lixiaofang's avatar lixiaofang

Merge branch 'test' of git.wanmeizhensuo.com:alpha/physical into test

parents f5526d6d 30397a8f
......@@ -533,12 +533,11 @@ class TopicUtils(object):
q["_source"] = {
"includes": ["id", "pictorial_id", "user_id", "_score","create_time","content_level"]
}
q['sort'] ={
"sort": [
q['sort'] = [
{"content_level": {"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)
topic_id_list = list()
......
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