Commit d62d40fe authored by lixiaofang's avatar lixiaofang

add

parent d84ee7a9
......@@ -192,7 +192,7 @@ class ESPerform(object):
try:
assert (es_cli is not None)
official_index_name = sub_index_name
if sub_index_name != "mv-alpha-pictorial-test-190711901":
if sub_index_name != "mv-alpha-pictorial-test-190717904":
official_index_name = cls.get_official_index_name(sub_index_name, "read")
index_exists = es_cli.indices.exists(official_index_name)
......@@ -317,7 +317,7 @@ for old_item in result_dict["hits"]:
]
}
}
result_dict_test = ESPerform.get_search_results(es_cli_obj, "mv-alpha-pictorial-test-190711901", q, 0, 1)
result_dict_test = ESPerform.get_search_results(es_cli_obj, "mv-alpha-pictorial-test-190717904", q, 0, 1)
for new_item in result_dict_test["hits"]:
new_source = new_item["_source"]
new_id = new_source["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