# Using q=\* or match\_all to search an index return partial records

**URL:** <https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217>\
**Category:** Elasticsearch\
**Created:** [February 17, 2015, 8:02pm UTC](https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217 "2015-02-17T20:02:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JOSE\_R\_VELEZ](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JOSE\_R\_VELEZ](https://discuss.elastic.co/u/JOSE_R_VELEZ)\
**Post date:** [February 17, 2015, 8:02pm UTC](https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217/1 "2015-02-17T20:02:50Z")

</div>

Hi,

I'm new to ElasticSearch and I'm following the Getting Started tutorial.  
Right now I'm looking at "the search api" section (link:  
[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/\_the\_search\_api.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_the_search_api.html)).

I have successfully added the records from accounts.json sample data to an  
ElasticSearch index (as taught in the section before "the search api"), but  
when I search for it using

curl 'localhost:9200/bank/\_search?q=\*&pretty'

... the response states that it found a total of 1000 hits, but only shows  
10 of them.

Is this regular behavior? If so, is there a way to override it so it  
returns all the hits instead of just 10?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [February 17, 2015, 8:17pm UTC](https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217/2 "2015-02-17T20:17:37Z")

</div>

Yes. Use from and size parameter to navigate through the resultset.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 17 févr. 2015 à 21:02, JOSE R VELEZ [jvelez82@gmail.com](mailto:jvelez82@gmail.com) a écrit :
> 
> Hi,
> 
> I'm new to Elasticsearch and I'm following the Getting Started tutorial. Right now I'm looking at "the search api" section (link: [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_the_search_api.html)).
> 
> I have successfully added the records from accounts.json sample data to an Elasticsearch index (as taught in the section before "the search api"), but when I search for it using
> 
> curl 'localhost:9200/bank/\_search?q=\*&pretty'
> 
> ... the response states that it found a total of 1000 hits, but only shows 10 of them.
> 
> Is this regular behavior? If so, is there a way to override it so it returns all the hits instead of just 10?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9B68DB6C-5724-4227-998C-CE7D6F9B4D53%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/9B68DB6C-5724-4227-998C-CE7D6F9B4D53%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![krishna](https://avatars.discourse-cdn.com/v4/letter/k/71c47a/32.png) [@krishna](https://discuss.elastic.co/u/krishna)\
**Post date:** [February 17, 2015, 8:19pm UTC](https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217/3 "2015-02-17T20:19:45Z")

</div>

Default it is 10

Please check

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

for modifying the same.  
Also you can try with scan and scroll,

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

to avoid OOM issues!

On Wednesday, 18 February 2015 01:32:50 UTC+5:30, JOSE R VELEZ wrote:

> Hi,
> 
> I'm new to Elasticsearch and I'm following the Getting Started tutorial.  
> Right now I'm looking at "the search api" section (link:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_the_search_api.html)).
> 
> I have successfully added the records from accounts.json sample data to an  
> Elasticsearch index (as taught in the section before "the search api"), but  
> when I search for it using
> 
> curl 'localhost:9200/bank/\_search?q=\*&pretty'
> 
> ... the response states that it found a total of 1000 hits, but only shows  
> 10 of them.
> 
> Is this regular behavior? If so, is there a way to override it so it  
> returns all the hits instead of just 10?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/97b08edf-8078-4a5a-8ec7-22ad331f6846%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/97b08edf-8078-4a5a-8ec7-22ad331f6846%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![JOSE\_R\_VELEZ](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@JOSE\_R\_VELEZ](https://discuss.elastic.co/u/JOSE_R_VELEZ)\
**Post date:** [February 17, 2015, 9:45pm UTC](https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217/4 "2015-02-17T21:45:16Z")

</div>

Just what I was looking for. Thanks both for the help.

On Tuesday, February 17, 2015 at 12:19:45 PM UTC-8, sri krishna wrote:

> Default it is 10
> 
> Please check  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-from-size.html)  
> for modifying the same.  
> Also you can try with scan and scroll,  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/scan-scroll.html)  
> to avoid OOM issues!
> 
> On Wednesday, 18 February 2015 01:32:50 UTC+5:30, JOSE R VELEZ wrote:
> 
> > Hi,
> > 
> > I'm new to Elasticsearch and I'm following the Getting Started tutorial.  
> > Right now I'm looking at "the search api" section (link:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/_the_search_api.html)).
> > 
> > I have successfully added the records from accounts.json sample data to  
> > an Elasticsearch index (as taught in the section before "the search api"),  
> > but when I search for it using
> > 
> > curl 'localhost:9200/bank/\_search?q=\*&pretty'
> > 
> > ... the response states that it found a total of 1000 hits, but only  
> > shows 10 of them.
> > 
> > Is this regular behavior? If so, is there a way to override it so it  
> > returns all the hits instead of just 10?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/33ff5453-e677-49fa-9c69-e5e74930b980%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/33ff5453-e677-49fa-9c69-e5e74930b980%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:32am UTC](https://discuss.elastic.co/t/using-q-or-match-all-to-search-an-index-return-partial-records/22217/5 "2017-07-06T00:32:04Z")

</div>


