Commit dbb48f3c authored by lixiaofang's avatar lixiaofang

add

parent 00689d75
...@@ -745,7 +745,7 @@ class TopicUtils(object): ...@@ -745,7 +745,7 @@ class TopicUtils(object):
query = '' query = ''
for k, v in filters.items(): for k, v in filters.items():
if k == "content" or k == "id": if k == "content" or k == "id":
query = filters["content"] query = filters[k]
q = {} q = {}
q["query"] = { q["query"] = {
"function_score": { "function_score": {
......
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