Docs Home / Compass / Create an Aggregation Pipeline

Count Pipeline Results Documents统计管道结果文档

You can view the number of documents outputted by your pipeline with the count results button.您可以使用“计数结果”按钮查看管道输出的文档数量。

About this Task关于此任务

When you delete or add a document, you must manually refresh the count results value on the Aggregations tab to reflect the new document count.删除或添加文档时,必须手动刷新“聚合”选项卡上的“计数结果”值,以反映新的文档计数。

Before You Begin开始之前

To count result documents, you must first create and run your aggregation pipeline. You can't count result documents while editing your pipeline.要统计结果文档,您必须首先创建并运行聚合管道。编辑工作流时无法计算结果文档。

Steps步骤

1

Click count results点击“计数结果”

After you run your pipeline, click count results, which appears under the Run button. The count results button will update with the count of resulting documents.运行管道后,单击出现在“运行”按钮下的“计数结果”。“计数结果”按钮将随着结果文档的计数而更新。

Click the count results link
2

(Optional) Click the refresh icon(可选)单击刷新图标

If you edit your pipeline, click refresh to update your document count.如果编辑了工作流,请单击图标以更新文档计数。

Learn More了解更多