Commit 6ea026ed authored by lixiaofang's avatar lixiaofang

add

parent ddf4c872
...@@ -1293,12 +1293,19 @@ class TopicUtils(object): ...@@ -1293,12 +1293,19 @@ class TopicUtils(object):
} }
}) })
elif k == "is_shadow": elif k == "is_shadow":
if v == 0:
f.append({ f.append({
"term": { "term": {
"is_shadow": False "is_shadow": False
} }
}) })
else:
f.append({
"term": {
"is_shadow": True
}
})
elif k == "virtual_content_level": elif k == "virtual_content_level":
f.append({ f.append({
"match": {k: v} "match": {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