llm_codes_import_to_es

This commit is contained in:
hsafaei
2025-09-30 16:40:11 +03:30
parent 8bc0fde102
commit 372251aff7
9 changed files with 402 additions and 170 deletions
+9 -10
View File
@@ -11,8 +11,8 @@ from app.temp_refactor_gn_dataset import *
load_dotenv(dotenv_path="config.env")
# host = os.getenv("HOST_160")
# password = os.getenv("HOST_160_PASS")
host = os.getenv("HOST_160")
password = os.getenv("HOST_160_PASS")
# host=os.getenv('HOST_112')
# password=os.getenv('HOST_112_PASS')
@@ -23,8 +23,8 @@ load_dotenv(dotenv_path="config.env")
# host=os.getenv('HOST_118')
# password=os.getenv('HOST_118_PASS')
host=os.getenv('HOST_60')
password=os.getenv('HOST_60_PASS')
# host=os.getenv('HOST_60')
# password=os.getenv('HOST_60_PASS')
# host=os.getenv('HOST_161')
# password=os.getenv('HOST_161_PASS')
@@ -42,12 +42,14 @@ print(host)
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
elastic = ElasticHelper(host, password, "elastic", path_base_map)
# elastic.backupIndexToZipfile("G:/Project2/111/haditha", "dh_volume")
# elastic.backupIndexToZipfile("G:/Project2/111/haditha", "dh_haditha")
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section")
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section.zip', 'mj_qa_section', 'majles', False, 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/gn_setting.zip', 'gn_setting', 'general', False, 'gn_setting')
# elastic.backupIndexToZipfile("G:/Project2/111", "mn_spr_sanad")
# elastic.createIndex( 'mn_spr_sanad', 'monir', 'mn_spr_sanad')
elastic.restorFileToElastic2('G:/Project2/111/mn_spr_sanad.zip', 'mn_spr_sanad', 'monir', False, 'mn_spr_sanad')
# elastic.restorFileToElastic2('G:/Project2/111/mn_spr_sanad.zip', 'mn_spr_sanad', 'monir', False, 'mn_spr_sanad')
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_domain")
# elastic.createIndex( 'mj_qa_domain', 'majles', 'mj_domain')
@@ -70,9 +72,6 @@ elastic.restorFileToElastic2('G:/Project2/111/mn_spr_sanad.zip', 'mn_spr_sanad',
# elastic.restorFileToElastic2('G:/Project2/111/mn_sanad.zip', 'mn_sanad', 'monir', False, 'mn_sanad')
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section")
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section.zip', 'mj_qa_section', 'majles', False, 'mj_qa_section')
# elastic.restorFileToElastic2('G:/Project2/111/gn_setting.zip', 'gn_setting', 'general', False, 'gn_setting')
# -------------------------------------------------------
##
# elastic.backupIndexToZipfile("G:/Project2/111", "dh_haditha")