Commit c993d1ae authored by lixiaofang's avatar lixiaofang

add

parent 3b7819b6
...@@ -1040,8 +1040,14 @@ class TopicUtils(object): ...@@ -1040,8 +1040,14 @@ class TopicUtils(object):
else: else:
f.append({ if isinstance(v, list):
"term": {k: v}, f.append({
}) "terms": {k: v},
})
else:
f.append({
"term": {k: v},
})
return f return f
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