Commit 011d9fd4 authored by litaolemo's avatar litaolemo

update

parent 240bae33
......@@ -107,7 +107,7 @@ tractate_res_scan = scan(es,es_query_tractate,index="gm-dbmw-tractate-read")
tractate_dict = {}
for tractate_json in tractate_res_scan:
_id = tractate_json["_id"]
content_keyword_list = tractate_json["source"]["content_keyword"]
content_keyword_list = tractate_json["_source"]["content_keyword"]
for content_keyword in content_keyword_list:
if content_keyword in tractate_dict:
tractate_dict[content_keyword] += 1
......@@ -129,7 +129,7 @@ answer_res_scan = scan(es,es_query_tractate,index="gm-dbmw-answer-read")
answer_dict = {}
for answer_json in answer_res_scan:
_id = answer_json["_id"]
content_keyword_list = answer_json["source"]["content_keyword"]
content_keyword_list = answer_json["_source"]["content_keyword"]
for content_keyword in content_keyword_list:
if content_keyword in tractate_dict:
answer_dict[content_keyword] += 1
......
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