Commit 5221e72e authored by lixiaofang's avatar lixiaofang

Merge branch 'master' of git.wanmeizhensuo.com:alpha/physical

parents ea2250bd 1ea8697d
...@@ -269,13 +269,6 @@ class GroupUtils(object): ...@@ -269,13 +269,6 @@ class GroupUtils(object):
} }
] ]
q = {}
q["query"] = {
"term": {
"is_online": True
}
}
logging.info("get qqqqqqqq:%s" % q)
es_cli_obj = ESPerform.get_cli() es_cli_obj = ESPerform.get_cli()
result_dict = ESPerform.get_search_results(es_cli_obj, "pictorial", q, offset, size) result_dict = ESPerform.get_search_results(es_cli_obj, "pictorial", q, offset, size)
logging.info("get result_dict:%s" % result_dict) logging.info("get result_dict:%s" % result_dict)
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"content_level":{"type":"text"}, "content_level":{"type":"text"},
"user_id":{"type":"long"}, "user_id":{"type":"long"},
"user_nick_name":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_index"},//帖子用户名 "user_nick_name":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_index"},//帖子用户名
"user_nick_name_pre": {"type":"text","index":"not_analyzed"}, //不切词的用户名 "user_nick_name_pre": {"type":"text","analyzer":"keyword"}, //不切词的用户名
"group_id":{"type":"long"}, //所在组ID "group_id":{"type":"long"}, //所在组ID
"tag_list":{"type":"long"},//标签属性 "tag_list":{"type":"long"},//标签属性
"edit_tag_list":{"type":"long"},//编辑标签 "edit_tag_list":{"type":"long"},//编辑标签
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
"id":{"type":"long"}, "id":{"type":"long"},
"user_id":{"type":"long"}, "user_id":{"type":"long"},
"nick_name":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_index"}, //昵称 "nick_name":{"type":"text","analyzer":"gm_default_index","search_analyzer":"gm_default_index"}, //昵称
"nick_name_pre":{"type":"text","analyzer":"not_analyzed"}, //昵称 "nick_pre":{"type":"text","analyzer":"keyword"}, //昵称
"nick_name_pre":{"type":"text"}, //昵称
"profile_pic":{"type":"text"}, //头像 "profile_pic":{"type":"text"}, //头像
"gender":{"type":"integer"}, "gender":{"type":"integer"},
"is_online":{"type":"boolean"},//是否上线 "is_online":{"type":"boolean"},//是否上线
......
...@@ -42,6 +42,7 @@ class UserTransfer(object): ...@@ -42,6 +42,7 @@ class UserTransfer(object):
res["user_id"] = instance.user_id res["user_id"] = instance.user_id
res["nick_name"] = instance.nick_name res["nick_name"] = instance.nick_name
res["nick_name_pre"] = instance.nick_name res["nick_name_pre"] = instance.nick_name
res["nick_pre"] = instance.nick_name
res["profile_pic"] = instance.profile_pic res["profile_pic"] = instance.profile_pic
res["gender"] = instance.gender res["gender"] = instance.gender
res["city_id"] = instance.city_id res["city_id"] = instance.city_id
......
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