Commit 39557805 by dong

fix

parent f64005c1
......@@ -273,8 +273,10 @@ def search():
del body["query"]["bool"]["must"][0]
try:
es = Elasticsearch([{'host': '39.100.39.50', 'port': 9200}])
data = es.search(index="jc_enterperise1", body=body)
# es = Elasticsearch([{'host': '39.100.39.50', 'port': 9200}])
# data = es.search(index="jc_enterperise1", body=body)
es = Elasticsearch([{'host': '39.98.37.63', 'port': 29200}])
data = es.search(index="jincheng_pictext_index_202304071702_ed39e02e", body=body)
data_list = []
# print(data_list)
size = data["hits"]['total']
......
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