1
This commit is contained in:
@@ -83,7 +83,7 @@ def importCodesToElastic(elastic, file_excel, index_name_o, tcode_label, tcode_i
|
||||
|
||||
# اگر پیدا نشد، از الاستیک جستجو کند
|
||||
if qanon_id == 0 :
|
||||
qanon_id, score, item = searchQanonId(elastic, "mj_qa_qanon", qanon_title, ts_date)
|
||||
qanon_id, score, item = searchQanonId(elastic, qanon_title, ts_date, "mj_qa_qanon")
|
||||
# اگر قابل اطمینان نبود، خطا ثبت کند
|
||||
if score < 90 :
|
||||
dic_error_qanon_title[qanon_title]=count
|
||||
@@ -254,7 +254,7 @@ def importEtebarToElastic(elastic, file_excel, index_name_o, tcode_label, tcode_
|
||||
|
||||
# اگر پیدا نشد، از الاستیک جستجو کند
|
||||
if qanon_id == 0 :
|
||||
qanon_id, score, item = searchQanonId(elastic, "mj_qa_qanon", qanon_title, ts_date)
|
||||
qanon_id, score, item = searchQanonId(elastic, qanon_title, ts_date, "mj_qa_qanon")
|
||||
# اگر قابل اطمینان نبود، خطا ثبت کند
|
||||
if score < 90 :
|
||||
dic_error_qanon_title[qanon_title]=count
|
||||
@@ -480,7 +480,7 @@ def importCodesToElastic(elastic, file_excel, index_name_o, tcode_label, tcode_i
|
||||
|
||||
# اگر پیدا نشد، از الاستیک جستجو کند
|
||||
if qanon_id == 0 :
|
||||
qanon_id, score, item = searchQanonId(elastic, "mj_qa_qanon", qanon_title, ts_date)
|
||||
qanon_id, score, item = searchQanonId(elastic, qanon_title, ts_date, "mj_qa_qanon")
|
||||
# اگر قابل اطمینان نبود، خطا ثبت کند
|
||||
if score < 90 :
|
||||
dic_error_qanon_title[qanon_title]=count
|
||||
@@ -708,6 +708,6 @@ text="پیوست 3>متن >ضمیمه 1>قسمت الف>فصل پنجم>جدول
|
||||
# print(text)
|
||||
# print(text1)
|
||||
# print(text1==text)
|
||||
# print( searchQanonId(elastic, "mj_qa_qanon", text) )
|
||||
# print( searchQanonId(elastic, text) )
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user