Commit 967de4fc authored by Kai's avatar Kai

add logging

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