Commit 50c3645f authored by 段英荣's avatar 段英荣

modify

parent a7ef26f3
......@@ -12,13 +12,6 @@ class GroupUtils(object):
def get_group_query_result(cls,query,offset,size):
try:
q = dict()
q["filter"] = {
"bool":{
"must":{
"is_online":True
}
}
}
multi_fields = {
'description': 2,
......@@ -34,6 +27,9 @@ class GroupUtils(object):
q['query'] = {
'bool': {
"must": {
"is_online": True
},
"should": [
{'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