# Results per Page limit

**URL:** https://discuss.elastic.co/t/results-per-page-limit/217643
**Category:** Elastic Search
**Tags:** elastic-app-search
**Created:** [February 3, 2020, 3:08pm UTC](https://discuss.elastic.co/t/results-per-page-limit/217643 "2020-02-03T15:08:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![uklft](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@uklft](https://discuss.elastic.co/u/uklft)
#### Post date: [February 3, 2020, 3:08pm UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/1 "2020-02-03T15:08:47Z")

</div>

Hey there,

When i try to list documents with a page size of **1000** , the server always returns only **100** documents.  
Tested with curl and python client:

```auto
curl -s -X GET 'http://server/api/as/v1/engines/gap/documents/list' \  
  -H 'Content-Type: application/json' \                                 
  -H 'Authorization: Bearer private-XXX' \         
  -d "{\"page\": {\"current\": 1,\"size\": 1000}}"

```

or

```auto
data = self.client.list_documents(self.engine, current=page, size=1000) 

```

Am i doing something wrong or may this be a bug?

Kind regards,  
Fabian

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [February 3, 2020, 4:13pm UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/2 "2020-02-03T16:13:55Z")

</div>

There is a limit of 100 for page size in App Searh.

---

<div class="post-metadata">

### Author: ![uklft](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@uklft](https://discuss.elastic.co/u/uklft)
#### Post date: [February 4, 2020, 8:47am UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/3 "2020-02-04T08:47:43Z")

</div>

Okay, good to know.

I read it like there would be 100 pages of 1000 documents each:

> **[Plan & API Limitations | Swiftype Documentation](https://swiftype.com/documentation/app-search/limitations#query-limits)**
>
> Learn how to get the most out of Swiftype

What is the "Results per Page" row then referring to?  
Maybe you could clarify that in the docs.

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [February 4, 2020, 12:45pm UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/4 "2020-02-04T12:45:27Z")

</div>

Ah interesting. Yes, that documentation looks misleading. We'll update that, thanks for pointing that out.

---

<div class="post-metadata">

### Author: ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)
#### Post date: [February 4, 2020, 12:56pm UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/5 "2020-02-04T12:56:40Z")

</div>

Ah, I see now. Just to clarify, the limit is 1000 for our search endpoint. For every other API endpoint, the limit is 100.

---

<div class="post-metadata">

### Author: ![uklft](https://avatars.discourse-cdn.com/v4/letter/u/f08c70/32.png) [@uklft](https://discuss.elastic.co/u/uklft)
#### Post date: [February 14, 2020, 9:13am UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/6 "2020-02-14T09:13:25Z")

</div>

Oh, thanks for the clarification.

---

<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: [March 13, 2020, 9:13am UTC](https://discuss.elastic.co/t/results-per-page-limit/217643/7 "2020-03-13T09:13:36Z")

</div>

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