Commit cc9a6d95 authored by litaolemo's avatar litaolemo

update

parent 7109dabf
......@@ -105,7 +105,7 @@ es_query_tractate = {"query": {
}
}
}
tractate_res_scan = scan(client=es, query=es_query_tractate, index="gm-dbmw-tractate-read", doc_type="tractate")
tractate_res_scan = scan(client=es, query=json.dumps(es_query_tractate), index="gm-dbmw-tractate-read", doc_type="tractate", scroll='3m')
tractate_dict = {}
for tractate_json in tractate_res_scan:
# print(tractate_json)
......@@ -128,7 +128,7 @@ es_query_answer = {"query": {
}
}
}
answer_res_scan = scan(client=es, query=es_query_tractate, index="gm-dbmw-answer-read", doc_type="answer")
answer_res_scan = scan(client=es, query=json.dumps(es_query_answer), index="gm-dbmw-answer-read", doc_type="answer", scroll='3m')
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