Commit 82eff02c authored by litaolemo's avatar litaolemo

update

parent 01b7641a
...@@ -144,6 +144,7 @@ def get_es_word(word,start_ts): ...@@ -144,6 +144,7 @@ def get_es_word(word,start_ts):
craw_level_count = results["aggregations"]["content_level"]["buckets"] craw_level_count = results["aggregations"]["content_level"]["buckets"]
res_list = [] res_list = []
# 可见3456星帖子 # 可见3456星帖子
try:
for content_level in ("3","4","5","6"): for content_level in ("3","4","5","6"):
doc_count = 0 doc_count = 0
for content_level_dic in content_level_count: for content_level_dic in content_level_count:
...@@ -151,6 +152,8 @@ def get_es_word(word,start_ts): ...@@ -151,6 +152,8 @@ def get_es_word(word,start_ts):
doc_count = content_level_dic["doc_count"] doc_count = content_level_dic["doc_count"]
break break
res_list.append(doc_count) res_list.append(doc_count)
except:
print("craw_level_count error" ,craw_level_count)
res_list.append(craw_tractate_num) res_list.append(craw_tractate_num)
for content_level in ("3","4","5","6"): for content_level in ("3","4","5","6"):
doc_count = 0 doc_count = 0
......
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