Commit 2121e5aa authored by lixiaofang's avatar lixiaofang

Merge branch 'hotword' into test

parents 2010fc66 bc351a1c
......@@ -247,7 +247,8 @@ class GroupUtils(object):
}
}
q["_source"] = {
"includes": ["id", "is_online", "is_deleted", "is_default", "topic_id_list", "is_cover", "offline_score",
"includes": ["id", "is_online", "is_deleted", "is_default", "topic_id_list", "is_cover",
"offline_score",
"is_default"]
}
q["sort"] = [
......
......@@ -277,7 +277,10 @@ def search_physical(query="", offset=0, size=10):
"""
try:
result_dicts = GroupUtils.get_search_pictorial_topic(query, offset, size)
logging.info("result_dicts:%s" % result_dicts)
group_ids_list = []
if len(result_dicts["hits"]) > 0:
group_ids_list = [item["_source"]["id"] for item in result_dict["hits"]]
return {"search_topic_ids": group_ids_list}
except:
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
......
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