Commit 3337fa8a authored by Dmytro Karpenko's avatar Dmytro Karpenko
Browse files

ES now has only one doc_type: 'doc'

parent 3b84d60e
......@@ -103,9 +103,9 @@ def ur_xml_to_json(xml_filename):
def convert_and_submit_document(es, es_index, recordId, ur_xml):
try:
if not es.exists(index = es_index, doc_type = 'arcusagerecord', id = recordId):
if not es.exists(index = es_index, doc_type = 'doc', id = recordId):
ur_json = ur_xml_to_json(ur_xml)
es_res = es.index(index = es_index, doc_type = 'arcusagerecord', id = recordId, body = ur_json)
es_res = es.index(index = es_index, doc_type = 'doc', id = recordId, body = ur_json)
if es_res['created'] != True:
return 1
else:
......
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