Commit 153bb3fb authored by lixiaofang's avatar lixiaofang

ad

parent 1d27d481
......@@ -452,7 +452,7 @@ class TopicUtils(object):
for item in result_dict["hits"]:
topic_id_list.append({"id": item["_source"]["id"], "highlight": item["highlight"]})
topic_id_list.append({"id": item["_source"]["id"], "highlight": item.get("highlight",{})})
return topic_id_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