# 执行https://www.elastic.co/guide/cn/elasticsearch/guide/current/_aggregation_test_drive.html中的例子时报错Fielddata is disabled on text fields ,只需要在查询的fields后面加上.kewwords即可 # 参考https://blog.csdn.net/u011403655/article/details/71107415/ def curl_es(data): re…