# Display the Number of Documents a Dynamic Cluster Contains

You can use the document IDs that dynamic clustering returns to display how many documents a dynamic cluster contains in a front-end application.

For example, assume that a query for `Apollo` returns 10 result documents with the document IDs listed in the following table.

Dynamic cluster name | IDs of documents in this dynamic cluster
--- | ---
Neil Armstrong |  | `2` |  |  | `5` |  | `7` |  | `9` | `10`
command module |  |  |  |  | `5` |  | `7` |  | `9` |
moon landing |  | `2` |  |  | `5` |  |  | `8` | `9` |
Greek mythology | `1` |  | `3` | `4` |  |  |  |  |  |
Zeus | `1` |  | `3` |  |  |  |  |  |  |

When Content displays the total number of documents that a dynamic cluster contains, it counts documents for a dynamic cluster only if they were not already counted for a previous dynamic cluster. The clusters have the following totals:

- Neil Armstrong (5)

- Greek mythology (3)

- moon landing (1)

- other (1)

Content determines the totals in the following way:

- The `Neil Armstrong` cluster contains five documents.

- The `command module` cluster contains only documents that were counted for the previous cluster, so it is not listed.

- The `moon landing` cluster contains one document because the documents with the IDs `2`, `5`, and `9` were counted for previous clusters.

- The `Greek myth` cluster contains three documents.

- The `Zeus` cluster contains only documents that were counted for the previous cluster, so it is not listed.

- One document that the query returned did not fit into any of the clusters. Content lists this document in the `other` cluster.

© Copyright 2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm