Commit dd859d9a authored by 段英荣's avatar 段英荣

modify

parent 09ae3321
......@@ -190,6 +190,7 @@ class TopicUtils(object):
"minimum_should_match": 1
}
"""
"""
if not is_first_time:
if group_topic_ids_index:
query_function_score["query"]["bool"]["must"]["range"]["group_id"] = {
......@@ -198,7 +199,9 @@ class TopicUtils(object):
else:
query_function_score["query"]["bool"]["must"]["range"]["group_id"] = {
"lt": 0
}
}
"""
q["query"]["function_score"] = query_function_score
q["_source"] = {
"include":["id","group_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