Commit 1f10cff4 authored by Kai's avatar Kai

update

parent 8eff6baf
...@@ -375,7 +375,8 @@ class TopicUtils(object): ...@@ -375,7 +375,8 @@ class TopicUtils(object):
"bool": { "bool": {
"must": [ "must": [
{"term": {"is_online": True}}, {"term": {"is_online": True}},
{"term": {"is_deleted": False}} {"term": {"is_deleted": False}},
{"terms": {"tag_list": useful_tag_list}}
], ],
"must_not": { "must_not": {
"terms": { "terms": {
...@@ -385,11 +386,6 @@ class TopicUtils(object): ...@@ -385,11 +386,6 @@ class TopicUtils(object):
} }
} }
} }
query_function_score["query"]["bool"]["filter"] = {
"terms": {
"tag_list": useful_tag_list
}
}
q["_source"] = { q["_source"] = {
"includes": ["id"] "includes": ["id"]
} }
......
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