Commit dbbf36b8 authored by 段英荣's avatar 段英荣

modify

parent eeb8c150
......@@ -348,7 +348,9 @@ class TopicUtils(object):
},
"minimum_should_match": 1,
"should": [
{'multi_match': multi_match},
{'match_phrase': {"content":query}},
{'match_phrase': {"tag_name_list": query}},
# {'multi_match': multi_match},
{"term": {"tag_list": tag_id}},
{"term": {"user_nick_name_pre": query.lower()}}
]
......@@ -368,7 +370,9 @@ class TopicUtils(object):
},
"minimum_should_match": 1,
"should": [
{'multi_match': multi_match},
{'match_phrase': {"content": query}},
{'match_phrase': {"tag_name_list": query}},
# {'multi_match': multi_match},
{"term": {"tag_list": tag_id}},
{"term": {"user_nick_name_pre": query.lower()}}
]
......@@ -388,7 +392,9 @@ class TopicUtils(object):
},
"minimum_should_match": 1,
"should": [
{'multi_match': multi_match},
{'match_phrase': {"content": query}},
{'match_phrase': {"tag_name_list": query}},
# {'multi_match': multi_match},
{"term": {"tag_list": tag_id}},
{"term": {"user_nick_name_pre": query.lower()}}
]
......
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