Commit d1072f8d authored by Kai's avatar Kai

update

parent b02e7e04
...@@ -370,10 +370,7 @@ class TopicUtils(object): ...@@ -370,10 +370,7 @@ class TopicUtils(object):
return [] return []
else: else:
q = dict() q = dict()
q["query"] = dict() q["query"] = {
# logging.warning("topic_tag_list:%s"%str(topic_tag_list))
query_function_score = {
"query": {
"bool": { "bool": {
"must": [ "must": [
{"term": {"is_online": True}}, {"term": {"is_online": True}},
...@@ -387,7 +384,23 @@ class TopicUtils(object): ...@@ -387,7 +384,23 @@ class TopicUtils(object):
} }
} }
} }
} # logging.warning("topic_tag_list:%s"%str(topic_tag_list))
# query_function_score = {
# "query": {
# "bool": {
# "must": [
# {"term": {"is_online": True}},
# {"term": {"is_deleted": False}},
# {"terms": {"tag_list": useful_tag_list}}
# ],
# "must_not": {
# "terms": {
# "id": have_read_topic_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