Commit fb4d33b3 authored by litaolemo's avatar litaolemo

update

parent df8e0dca
......@@ -105,7 +105,7 @@ es_query_tractate = {"query": {
}
}
}
tractate_res_scan = scan(es,es_query_tractate,index="gm-dbmw-tractate-read")
tractate_res_scan = scan(client=es,query=es_query_tractate,index="gm-dbmw-tractate-read",doc="doc")
tractate_dict = {}
for tractate_json in tractate_res_scan:
_id = tractate_json["_id"]
......@@ -127,7 +127,7 @@ es_query_answer = {"query": {
}
}
}
answer_res_scan = scan(es,es_query_tractate,index="gm-dbmw-answer-read")
answer_res_scan = scan(client=es,query=es_query_tractate,index="gm-dbmw-answer-read",doc="doc")
answer_dict = {}
for answer_json in answer_res_scan:
_id = answer_json["_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