Commit 3fec506e authored by litaolemo's avatar litaolemo

update

parent c95409a5
...@@ -211,7 +211,7 @@ def get_search_keywrod_dict(): ...@@ -211,7 +211,7 @@ def get_search_keywrod_dict():
} }
} }
} }
return_dict = [] return_dict = {}
scan_res = scan(es_framework,query=search_body,index="search_word") scan_res = scan(es_framework,query=search_body,index="search_word")
for res in scan_res: for res in scan_res:
return_dict[res["_source"]["title"]] = {} return_dict[res["_source"]["title"]] = {}
......
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