codes
This commit is contained in:
+14
-8
@@ -19,8 +19,8 @@ load_dotenv(dotenv_path="config.env")
|
||||
# host = os.getenv("HOST_160")
|
||||
# password = os.getenv("HOST_160_PASS")
|
||||
|
||||
# host=os.getenv('HOST_112')
|
||||
# password=os.getenv('HOST_112_PASS')
|
||||
host=os.getenv('HOST_112')
|
||||
password=os.getenv('HOST_112_PASS')
|
||||
|
||||
# host=os.getenv('HOST_113')
|
||||
# password=os.getenv('HOST_113_PASS')
|
||||
@@ -37,19 +37,28 @@ load_dotenv(dotenv_path="config.env")
|
||||
# host=os.getenv('HOST_80')
|
||||
# password=os.getenv('HOST_80_PASS')
|
||||
|
||||
host=os.getenv('HOST_133')
|
||||
password=os.getenv('HOST_133_PASS')
|
||||
# host=os.getenv('HOST_133')
|
||||
# password=os.getenv('HOST_133_PASS')
|
||||
|
||||
|
||||
print(host)
|
||||
# print(password)
|
||||
|
||||
path_base_map = "G:/Project2/gateway2_main/repo/_other/"
|
||||
path_base_map = "G:/Project2/gateway_php/repo/_other/"
|
||||
elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
|
||||
|
||||
# elastic.removeCustomFileds("mj_qa_section", ["tcode","nlp_parser","content_normal","tcode_mains","tcode_subs", "ners_v1", "level", "code-ai"])
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section-m1")
|
||||
# elastic.createIndex( index_name='mj_qa_section-m1', app_key='majles', map_name='mj_qa_section')
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section-m1.zip', 'mj_qa_section-m1', 'majles', False, 'mj_qa_section')
|
||||
elastic.restorFileToElastic2(path_file='G:/Project2/111/server112/mj_qa_section-m1.zip', index_name='mj_qa_section-m1', app_key='majles', queryDelete=False, map_name='mj_qa_section')
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_plan")
|
||||
# elastic.createIndex( 'mj_plan', 'majles', 'mj_plan')
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_plan.zip', 'mj_plan', 'majles', False, 'mj_plan')
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_mashruh")
|
||||
# elastic.backupIndexToZipfile("G:/Project2/113", "mj_qa_section")
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section.zip', 'mj_qa_section', 'majles', False, 'mj_qa_section')
|
||||
@@ -65,9 +74,6 @@ elastic = ElasticHelper(host, password, "elastic", path_base_map)
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_domain.zip', 'mj_qa_domain', 'majles', False, 'mj_qa_domain')
|
||||
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111", "mj_qa_section-m1")
|
||||
# elastic.createIndex( 'mj_qa_section-m1', 'majles', 'mj_qa_section')
|
||||
# elastic.restorFileToElastic2('G:/Project2/111/mj_qa_section-m1.zip', 'mj_qa_section-m1', 'majles', False, 'mj_qa_section')
|
||||
|
||||
# elastic.backupIndexToZipfile("G:/Project2/111", "gn_calendar")
|
||||
# elastic.createIndex( 'gn_calendar', 'general', 'gn_calendar')
|
||||
|
||||
Reference in New Issue
Block a user