Using q=* or match_all to search an index return partial records

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).

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/934e285f-9c3a-4002-8b37-d3afe925c55b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs

Le 17 févr. 2015 à 21:02, JOSE R VELEZ 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).

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?utm_medium=email&utm_source=footer.
For more options, visit 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9B68DB6C-5724-4227-998C-CE7D6F9B4D53%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Default it is 10

Please check

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

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).

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/97b08edf-8078-4a5a-8ec7-22ad331f6846%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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
for modifying the same.
Also you can try with scan and scroll,
Elasticsearch Platform — Find real-time answers at scale | Elastic
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).

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/33ff5453-e677-49fa-9c69-e5e74930b980%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.