Commit 34a89a76 authored by lixiaofang's avatar lixiaofang

add

parent 0e792077
...@@ -598,9 +598,6 @@ class TopicUtils(object): ...@@ -598,9 +598,6 @@ class TopicUtils(object):
return f return f
for k, v in filters.items(): for k, v in filters.items():
logging.info("get fffffffff:%s" % k)
logging.info("get fffffffff:%s" % v)
if k == "is_complaint": if k == "is_complaint":
f.append({ f.append({
"term": {k: v}, "term": {k: v},
...@@ -641,16 +638,10 @@ class TopicUtils(object): ...@@ -641,16 +638,10 @@ class TopicUtils(object):
}) })
else: else:
if isinstance(v, list): if isinstance(v, list):
logging.info("get hhhhhhhhhh:%s"%k)
logging.info("get hhhhhhhhhh:%s"%v)
f.append({ f.append({
"terms": {k: v}, "terms": {k: v},
}) })
else: else:
logging.info("get hhhhfffffffhhhhhh:%s"%k)
logging.info("get hhhhhhfffhhhh:%s"%v)
f.append({ f.append({
"term": {k: v}, "term": {k: v},
}) })
......
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