Commit ec54f98f by 赵宇

fix1

parent 605d051d
......@@ -261,7 +261,7 @@ def search():
try:
es = Elasticsearch([{'host': '39.100.39.50', 'port': 9200}])
data = es.search(index="jincheng_pictext_index_202202181510_eab2ec46", body=body)
data = es.search(index="jincheng_pictext_index_202202181646_5004ce02", body=body)
data_list = []
print(data_list)
size = data["hits"]['total']
......@@ -342,7 +342,13 @@ def create_body(page, page_size, args_query, args_term):
},
"from": page,
"size": page_size,
"sort": [],
"sort": [
{
"order": {
"mysql_id": "asc"
}
}
],
"aggs": {},
"_source": [
"mysql_id", 'company_name', 'city', 'district', 'build_date', 'legal', 'capital', 'entype', 'address',
......
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