# Pagination for Nested Objects?

**URL:** <https://discuss.elastic.co/t/pagination-for-nested-objects/254552>\
**Category:** Elasticsearch\
**Created:** [November 6, 2020, 3:55pm UTC](https://discuss.elastic.co/t/pagination-for-nested-objects/254552 "2020-11-06T15:55:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mobeit00](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mobeit00](https://discuss.elastic.co/u/mobeit00)\
**Post date:** [November 6, 2020, 3:55pm UTC](https://discuss.elastic.co/t/pagination-for-nested-objects/254552/1 "2020-11-06T15:55:24Z")

</div>

I currently have an array of objects in my Elasticsearch. Currently I only have one filter on the name and I load all objects from the Elasticsearch and process them later in the application. Now I have too much data in the Elasticsearch and I need a page numbering to improve the performance. How can I do a page numbering based on an array?

```auto
[
  {
    "_id": "10",
    "_source": {
      "names": [{ "id": 10, "title": "Hans" }],
      "tags": [
        {
          "id": 5,
          "name": "Foo"
        },
        {
          "id": 8,
          "name": "Bar"
        }
      ]
    }
  },
  {
    "_id": "11",
    "_source": {
      "names": [{ "id": 12, "title": "Franz" }],
      "tags": [
        {
          "id": 6,
          "name": "Foo Bar"
        }
      ]
    }
  },
  {
    "_id": "4",
    "_source": {
      "names": [{ "id": 10, "title": "Hans" }],
      "tags": [
        {
            "id": 5,
            "name": "Example"
          },
          {
            "id": 8,
            "name": "Test"
          }
      ]
    }
  }
]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 4, 2020, 3:55pm UTC](https://discuss.elastic.co/t/pagination-for-nested-objects/254552/2 "2020-12-04T15:55:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
