逗人 你能搞清楚这段代码吗?实际上,当我调用此方法时,不会创建任何文件。 IT假设将所有文件从表导出到excel文件中,但没有错误,也没有输出。
writetoExcel();
我正在使用按钮
中的{
"size": 0,
"aggs": {
"unique_author": {
"terms": {
"field": "author",
"size": 100
},
"aggs": {
"total_book_count": {
"value_count": {
"field": "author"
}
},
"total_sum": {
"sum": {
"field": "length"
}
},
"only_single_book_author": {
"bucket_selector": {
"buckets_path": {
"total_books": "total_book_count"
},
"script": "total_books==1"
}
}
}
},
"page_length": {
"sum_bucket": {
"buckets_path": "unique_author>total_sum"
}
}
}
}
来调用该方法