Commit 0dc34b1f authored by zhanglu's avatar zhanglu

fix

parent 4250a56c
...@@ -521,8 +521,9 @@ class TopicUtils(object): ...@@ -521,8 +521,9 @@ class TopicUtils(object):
q = { q = {
"query": { "query": {
"filtered": { "bool": {
"query": {"match_all":{}}, "must": cls.process_filters(filters),
"must_not": cls.process_nfilters(nfilters),
} }
}, },
"_source": { "_source": {
...@@ -531,16 +532,6 @@ class TopicUtils(object): ...@@ -531,16 +532,6 @@ class TopicUtils(object):
"sort": [], "sort": [],
} }
if filters or nfilters:
f = cls.process_filters(filters)
nf = cls.process_nfilters(nfilters)
q["query"]["filtered"]["filter"] = {
"bool": {
"must": f,
"must_not": nf,
}
}
if sorts_by: if sorts_by:
sorts = cls.process_sort(sorts_by) sorts = cls.process_sort(sorts_by)
q["sort"] = sorts q["sort"] = sorts
......
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