# How to read indices with \> 10k records?

**URL:** <https://discuss.elastic.co/t/how-to-read-indices-with-10k-records/126363>\
**Category:** Elasticsearch\
**Created:** [April 2, 2018, 12:24am UTC](https://discuss.elastic.co/t/how-to-read-indices-with-10k-records/126363 "2018-04-02T00:24:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoffinPanda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/boffinpanda/32/26225_2.png) [@BoffinPanda](https://discuss.elastic.co/u/BoffinPanda)\
**Post date:** [April 2, 2018, 12:24am UTC](https://discuss.elastic.co/t/how-to-read-indices-with-10k-records/126363/1 "2018-04-02T00:24:28Z")

</div>

I have a large data gathering system which gives me records of size bigger than 10k.

Now, ES allows me to read the last 10k records only.

How do I tackle this problem? Do I split indices to accommodate 10 k records or do something else?

Here is how I get the size of records:

[http://localhost:9200/netflow-2018.02.20/\_search?pretty=true&size=0&q=](http://localhost:9200/netflow-2018.02.20/_search?pretty=true&size=0&q=)_:_

What should I do to streamline the crawl request?

Substitute &scroll=10m with something else?

---

<div class="post-metadata">

**Author:** ![zqc0512](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zqc0512/32/32141_2.png) [@zqc0512](https://discuss.elastic.co/u/zqc0512)\
**Post date:** [April 2, 2018, 1:29am UTC](https://discuss.elastic.co/t/how-to-read-indices-with-10k-records/126363/2 "2018-04-02T01:29:55Z")

</div>

docs mas search configure.

```
"action" : {
  "search" : {
    "shard_count" : {
      "limit" : "20000"
    }
  }
},
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 2, 2018, 3:29am UTC](https://discuss.elastic.co/t/how-to-read-indices-with-10k-records/126363/3 "2018-04-02T03:29:25Z")

</div>

It depends on what you are after:

- exporting data in a consistent way: use scroll API
- want to allow deep pagination, use search\_after feature

If it's something else, could you describe the user story?

---

<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:** [April 30, 2018, 3:29am UTC](https://discuss.elastic.co/t/how-to-read-indices-with-10k-records/126363/4 "2018-04-30T03:29:27Z")

</div>

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