Commit 7910ecd9 authored by 段英荣's avatar 段英荣

modify

parent 27fc13bd
......@@ -295,7 +295,7 @@ class TopicUtils(object):
query_function_score["query"]["bool"]["should"] = [
{'multi_match': multi_match},
{"terms":{"tag_list":tag_id}}
{"term":{"tag_list":tag_id}}
]
query_function_score["query"]["bool"]["minimum_should_match"] = 1
......@@ -530,7 +530,7 @@ class TopicUtils(object):
#{"range": {"content_level": {"gte": 3, "lte": 5}}},
{"term": {"is_online": True}},
{"term": {"is_deleted": False}},
{"terms": {"tag_list":tag_id}}
{"term": {"tag_list":tag_id}}
],
"must_not":[
{"terms": {"content_level": [1,2]}}
......
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