Elasticsearch 桶聚合操作指南
1. 数据准备
在进行桶聚合操作之前,我们可以复用之前使用过的数据集:书籍数据。你可以从 GitHub 页面获取该数据集并进行索引: 数据集链接 。以下是一个示例片段,供快速参考(注意,这不是完整的数据集):
POST _bulk
{"index":{"_index":"books","_id":"1"}}
{"title": "Core Java Volume I – Fundamentals","author": "Cay S. Horstmann","edition": 11,
"synopsis": "Java reference book that offers a detailed explanation of various
features of Core Java, including exception handling, interfaces, and lambda
expressions. Significant highlights of the book include simple language,
conciseness, and detailed examples.","amazon_rating": 4.6,"release_date": "2018-08-
27","tags": ["Programming Languages, Java Programming"]}
{"ind
超级会员免费看
订阅专栏 解锁全文
949

被折叠的 条评论
为什么被折叠?



