Commit 5dc22617 authored by lixiaofang's avatar lixiaofang

add

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