Commit 5db6ed6e authored by lixiaofang's avatar lixiaofang

dayz-week-mouth

parent ba127bee
......@@ -335,12 +335,25 @@ def pictorial_topic_sort(pictorial_id=-1, offset=0, size=10, sort_type=PICTORIAL
}
})
# q["sort"] = [
# {"related_billboard.topic_add_createtime": {
# "order": "desc",
# "nested_path": "related_billboard",
# "missing": "_last"
# }}
# ]
q["sort"] = [
{"related_billboard.topic_add_createtime": {
{"related_billboard.total_vote_cnt": {
"order": "desc",
"nested_path": "related_billboard",
"missing": "_last"
}}
"missing": "_last",
"nested_filter": {
"term": {
"related_billboard.pictorial_id": pictorial_id
}
}
}},
{"create_time": {"order": "desc"}}
]
logging.info("get qqqqqq:%s" % q)
......
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