Commit 1490ec73 authored by 段英荣's avatar 段英荣

modifu

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