Commit 6493e675 by dong

fix202302017

parent 15a9d68f
......@@ -286,7 +286,7 @@ def search():
"id": i["_source"]["mysql_id"],
"company": i["highlight"]["company_name"][0] if "company_name" in i["highlight"] else i["_source"][
"company_name"],
"area": i["_source"]["city"] + i["_source"]["district"],
"area": i["_source"]["province"] + i["_source"]["city"] + i["_source"]["district"],
"createtime": i["_source"]["build_date"],
"legal": i["_source"]["legal"],
"capital": i["_source"]["capital"],
......@@ -305,7 +305,7 @@ def search():
data_list.append({
"id": i["_source"]["mysql_id"],
"company": i["_source"]["company_name"],
"area": i["_source"]["city"] + i["_source"]["district"],
"area": i["_source"]["province"] + i["_source"]["city"] + i["_source"]["district"],
"createtime": i["_source"]["build_date"],
"legal": i["_source"]["legal"],
"capital": i["_source"]["capital"],
......@@ -357,7 +357,7 @@ def create_body(page, page_size, args_query, args_term):
"sort": [],
"aggs": {},
"_source": [
"mysql_id", 'company_name', 'city', 'district', 'build_date', 'legal', 'capital', 'entype', 'address',
"mysql_id", 'province', 'company_name', 'city', 'district', 'build_date', 'legal', 'capital', 'entype', 'address',
'telephone',
"high_new", "tbe", "fianacing", "quoted_company", "foreign_investment", "patent", "dengl", "unicorn",
"isfive"
......
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