Commit 967de4fc authored by Kai's avatar Kai

add logging

parent 4f4993b8
...@@ -526,9 +526,10 @@ class TopicUtils(object): ...@@ -526,9 +526,10 @@ class TopicUtils(object):
} }
} }
q["query"]["function_score"] = query_function_score q["query"]["function_score"] = query_function_score
q["collapse"] = { if topic_user_id == -1:
q["collapse"] = {
"field": "user_id" "field": "user_id"
} }
q["_source"] = { q["_source"] = {
"includes": ["id", "pictorial_id", "user_id", "_score"] "includes": ["id", "pictorial_id", "user_id", "_score"]
} }
......
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