Commit 5dc22617 authored by lixiaofang's avatar lixiaofang

add

parent e208fe76
......@@ -771,21 +771,15 @@ class TopicUtils(object):
}
if query == '':
q["query"] = {
"function_score": {
"functions": [{
"filter": {
"bool": {
"must": must,
"must_not": cls.process_nfilters(nfilters),
}
},
"weight": 1
}]
}
"bool": {
"must": must,
"must_not": cls.process_nfilters(nfilters),
}
}
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