Commit 8b828896 authored by 李小芳's avatar 李小芳

同步新的表

parent f0780fc1
......@@ -198,8 +198,6 @@ class ESPerform(object):
if not batch_search:
res = es_cli.search(index=official_index_name, doc_type=doc_type, body=query_body, from_=offset,
size=size)
logging.info("duan add official_index_name res:%s" % res)
if is_suggest_request:
return res
else:
......
......@@ -59,7 +59,6 @@ class ItemWikiTransfer(object):
result_dict = ESPerform.get_search_results(ESPerform.get_cli(settings.GM_ORI_ES_INFO_LIST),
sub_index_name="newwiki", doc_type="newwiki", query_body=q,
offset=0, size=0)
print("result_dict", result_dict)
doctor_results = result_dict["total_count"]
redis_key_prefix = "search_tips:tips_mapping_num"
......
......@@ -112,8 +112,6 @@ class SearchWord(object):
try:
total_count = 0
instance.name = instance.keyword
print("-------")
print(instance.name)
# 获取百科的
ItemWikiTransfer.get_wiki_data_name_mapping_results_to_redis(instance)
......
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