Commit c2f1155e authored by lixiaofang's avatar lixiaofang

hera

parent 2e20c5ea
...@@ -236,6 +236,8 @@ class TopicUtils(object): ...@@ -236,6 +236,8 @@ class TopicUtils(object):
'operator': 'or', 'operator': 'or',
'fields': ["content", "tag_name_list"], 'fields': ["content", "tag_name_list"],
} }
query_function_score["boost_mode"] ="replace"
query_function_score["query"]["bool"]["should"] = [ query_function_score["query"]["bool"]["should"] = [
{'multi_match': multi_match}, {'multi_match': multi_match},
......
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