AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# Aggregation Metadata(聚合元数据) 您可以将一条元数据与请求时的各个聚合相关联,并一起返回。 考虑这个例子,我们想将颜色蓝色与我们的 **terms **聚合相关联。 | `curl -XGET ``'localhost:9200/twitter/tweet/_search?pretty'` `-H ``'Content-Type: application/json'` `-d'` `{` `"size"``: ``0``,` `"aggs"``: {` `"titles"``: {` `"terms"``: {` `"field"``: ``"title"` `},` `"meta"``: {` `"color"``: ``"blue"` `}` `}` `}` `}` `'` | 那么这个元数据将被返回到我们的标题术语聚合 | `{` `"aggregations"``: {` `"titles"``: {` `"meta"``: {` `"color"` `: ``"blue"` `},` `"doc_count_error_upper_bound"` `: ``0``,` `"sum_other_doc_count"` `: ``0``,` `"buckets"``: [` `]` `}` `},` `...` `}` |