@@ -144,7 +144,8 @@ def es_query(title, publish_time):
}
result = ecli.search(body=query, index=ES_INDEX, request_timeout=100)
- total = int(result["hits"]["total"])
+ total = int(result["hits"]["total"]) # es1.x版本(即将废弃)
+ # total = int(result["hits"]["total"]['value']) # es7.x版本(等待切换)
return total