Commit 1f10cff4 authored by Kai's avatar Kai

update

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