Commit 4478c850 authored by 段英荣's avatar 段英荣

Merge branch 'sun' into 'master'

Sun

See merge request alpha/physical!332
parents 05bcb84f c4294831
...@@ -995,6 +995,21 @@ class TopicUtils(object): ...@@ -995,6 +995,21 @@ class TopicUtils(object):
} }
}) })
elif k == "drop_score":
if v == "0":
f.append({
"term": {k: v}
})
else:
f.append({
"range": {
"drop_score": {
"gte": v,
}
}
})
else: else:
if isinstance(v, list): if isinstance(v, list):
......
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