Commit ca46ee7f authored by lixiaofang's avatar lixiaofang

add

parent bf0dff29
......@@ -769,6 +769,23 @@ class TopicUtils(object):
}
}
if query == '':
q["query"] = {
"function_score": {
"functions": [{
"filter": {
"bool": {
"must": must,
"must_not": cls.process_nfilters(nfilters),
}
},
"weight": 1
}]
}
}
logging.info("get query business_topic:%s" % q)
if sorts_by:
sorts = cls.process_sort(sorts_by)
......
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