Commit 495a07a9 by dong

fix

parent 332afefa
......@@ -332,7 +332,8 @@ def search():
current_app.logger.error(e)
return jsonify(code=RET.DBERR, msg="es数据库错误")
data = {
"data": data_list, "size": size["value"]
# "data": data_list, "size": size["value"]
"data": data_list, "size": size
}
return jsonify(code=RET.OK, msg="查找成功", data=data)
......@@ -350,7 +351,7 @@ def body_qualificat(s, j):
def create_body(page, page_size, args_query, args_term):
body = {
"track_total_hits": "true",
# "track_total_hits": "true",
"query": {
"bool": {
"must": [
......@@ -388,7 +389,7 @@ def create_body(page, page_size, args_query, args_term):
def create_body1(page, page_size, args_query, args_term):
body = {
"track_total_hits": "true",
# "track_total_hits": "true",
"query": {
"bool": {
"must": [
......
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