# List all entries in an index + type

**URL:** <https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086>\
**Category:** Elasticsearch\
**Created:** [July 12, 2010, 3:06am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086 "2010-07-12T03:06:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Franz\_Allan\_Valencia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/franz_allan_valencia/32/3326_2.png) [@Franz\_Allan\_Valencia](https://discuss.elastic.co/u/Franz_Allan_Valencia)\
**Post date:** [July 12, 2010, 3:06am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/1 "2010-07-12T03:06:35Z")

</div>

Currently, I can search for entries in an index + type. But if I wan to list  
it and paginate through it, how can I do that with ElasticSearch?

## Thanks,

Franz Allan Valencia See | Java Software Engineer  
[franz.see@gmail.com](mailto:franz.see@gmail.com)  
LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Samuel\_Doyle](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Samuel\_Doyle](https://discuss.elastic.co/u/Samuel_Doyle)\
**Post date:** [July 12, 2010, 5:21am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/2 "2010-07-12T05:21:53Z")

</div>

If you are using Java you can use from and size on the builder.

[http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)

On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
[franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:

> Currently, I can search for entries in an index + type. But if I wan to  
> list it and paginate through it, how can I do that with Elasticsearch?
> 
> ## Thanks,
> 
> Franz Allan Valencia See | Java Software Engineer  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 12, 2010, 5:59pm UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/3 "2010-07-12T17:59:50Z")

</div>

From and size are exposed in the REST API as well. You can use scroll  
request as well, but note that scroll should not be used to execute many  
concurrent search requests.

-shay.banon

On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com) wrote:

> If you are using Java you can use from and size on the builder.
> 
> [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> 
> On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> 
> > Currently, I can search for entries in an index + type. But if I wan to  
> > list it and paginate through it, how can I do that with Elasticsearch?
> > 
> > ## Thanks,
> > 
> > Franz Allan Valencia See | Java Software Engineer  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Franz\_Allan\_Valencia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/franz_allan_valencia/32/3326_2.png) [@Franz\_Allan\_Valencia](https://discuss.elastic.co/u/Franz_Allan_Valencia)\
**Post date:** [July 16, 2010, 7:24am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/4 "2010-07-16T07:24:45Z")

</div>

Pardon, but how exactly?

I'm getting this:  
franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '

> {  
> "from" : 0, "size" : 10  
> }  
> '  
> {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> failure; shardFailures  
> {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> Failure [No query specified in search  
> request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> Failure [No query specified in search  
> request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> Failure [No query specified in search  
> request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> Failure [No query specified in search  
> request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> Failure [No query specified in search request]]}]"}

I didn't enter a query because I wanted to see all contents of the  
myindex/myType.

Thanks,

--  
Franz Allan Valencia See | Java Software Engineer  
[franz.see@gmail.com](mailto:franz.see@gmail.com)  
LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:

> From and size are exposed in the REST API as well. You can use scroll  
> request as well, but note that scroll should not be used to execute many  
> concurrent search requests.
> 
> -shay.banon
> 
> On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)wrote:
> 
> > If you are using Java you can use from and size on the builder.
> > 
> > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > 
> > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > 
> > > Currently, I can search for entries in an index + type. But if I wan to  
> > > list it and paginate through it, how can I do that with Elasticsearch?
> > > 
> > > ## Thanks,
> > > 
> > > Franz Allan Valencia See | Java Software Engineer  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 16, 2010, 7:31am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/5 "2010-07-16T07:31:00Z")

</div>

Hi,

if I am not mistaken then you are missing a "query" portion in your JSON.

curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
{  
"query" : {  
"from" : 0, "size" : 10  
}  
}  
'

Regards,  
Lukas

On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
[franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:

> Pardon, but how exactly?
> 
> I'm getting this:  
> franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '
> 
> > {  
> > "from" : 0, "size" : 10  
> > }  
> > '  
> > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > failure; shardFailures  
> > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > Failure [No query specified in search  
> > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > Failure [No query specified in search  
> > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > Failure [No query specified in search  
> > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > Failure [No query specified in search  
> > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > Failure [No query specified in search request]]}]"}
> 
> I didn't enter a query because I wanted to see all contents of the  
> myindex/myType.
> 
> Thanks,
> 
> --  
> Franz Allan Valencia See | Java Software Engineer  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> 
> On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)wrote:
> 
> > From and size are exposed in the REST API as well. You can use scroll  
> > request as well, but note that scroll should not be used to execute many  
> > concurrent search requests.
> > 
> > -shay.banon
> > 
> > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)wrote:
> > 
> > > If you are using Java you can use from and size on the builder.
> > > 
> > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > 
> > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > 
> > > > Currently, I can search for entries in an index + type. But if I wan to  
> > > > list it and paginate through it, how can I do that with Elasticsearch?
> > > > 
> > > > ## Thanks,
> > > > 
> > > > Franz Allan Valencia See | Java Software Engineer  
> > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Franz\_Allan\_Valencia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/franz_allan_valencia/32/3326_2.png) [@Franz\_Allan\_Valencia](https://discuss.elastic.co/u/Franz_Allan_Valencia)\
**Post date:** [July 16, 2010, 7:34am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/6 "2010-07-16T07:34:58Z")

</div>

Thanks. But still nothing...

franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
{  
"query" : { "from" : 0, "size" : 10 }  
}  
'  
{"error":"SearchPhaseExecutionException[Failed to execute [query] total  
failure; shardFailures {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
}\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
registered for [from]];  
}{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
}\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
registered for [from]];  
}{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
}\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
registered for [from]];  
}{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
}\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
registered for [from]];  
}{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
}\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
registered for [from]]; }]"}

On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Hi,
> 
> if I am not mistaken then you are missing a "query" portion in your JSON.
> 
> curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> {  
> "query" : {  
> "from" : 0, "size" : 10  
> }  
> }  
> '
> 
> Regards,  
> Lukas
> 
> On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> 
> > Pardon, but how exactly?
> > 
> > I'm getting this:  
> > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '
> > 
> > > {  
> > > "from" : 0, "size" : 10  
> > > }  
> > > '  
> > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > failure; shardFailures  
> > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > Failure [No query specified in search  
> > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > Failure [No query specified in search  
> > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > Failure [No query specified in search  
> > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > Failure [No query specified in search  
> > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > Failure [No query specified in search request]]}]"}
> > 
> > I didn't enter a query because I wanted to see all contents of the  
> > myindex/myType.
> > 
> > Thanks,
> > 
> > --  
> > Franz Allan Valencia See | Java Software Engineer  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > 
> > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<[shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)
> > 
> > > wrote:
> > 
> > > From and size are exposed in the REST API as well. You can use scroll  
> > > request as well, but note that scroll should not be used to execute many  
> > > concurrent search requests.
> > > 
> > > -shay.banon
> > > 
> > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)wrote:
> > > 
> > > > If you are using Java you can use from and size on the builder.
> > > > 
> > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > 
> > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > 
> > > > > Currently, I can search for entries in an index + type. But if I wan to  
> > > > > list it and paginate through it, how can I do that with Elasticsearch?
> > > > > 
> > > > > ## Thanks,
> > > > > 
> > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

--  
Franz Allan Valencia See | Java Software Engineer  
[franz.see@gmail.com](mailto:franz.see@gmail.com)  
LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 16, 2010, 7:39am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/7 "2010-07-16T07:39:55Z")

</div>

Sorry I double checked with the docs and I think I gave you wrong hint.

Lukas

On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
[franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:

> Thanks. But still nothing...
> 
> franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> {  
> "query" : { "from" : 0, "size" : 10 }  
> }  
> '  
> {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> failure; shardFailures {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> registered for [from]];  
> }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> registered for [from]];  
> }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> registered for [from]];  
> }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> registered for [from]];  
> }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> registered for [from]]; }]"}
> 
> On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > Hi,
> > 
> > if I am not mistaken then you are missing a "query" portion in your JSON.
> > 
> > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > {  
> > "query" : {  
> > "from" : 0, "size" : 10  
> > }  
> > }  
> > '
> > 
> > Regards,  
> > Lukas
> > 
> > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > 
> > > Pardon, but how exactly?
> > > 
> > > I'm getting this:  
> > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d  
> > > '
> > > 
> > > > {  
> > > > "from" : 0, "size" : 10  
> > > > }  
> > > > '  
> > > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > > failure; shardFailures  
> > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > Failure [No query specified in search  
> > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > Failure [No query specified in search  
> > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > Failure [No query specified in search  
> > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > Failure [No query specified in search  
> > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > Failure [No query specified in search request]]}]"}
> > > 
> > > I didn't enter a query because I wanted to see all contents of the  
> > > myindex/myType.
> > > 
> > > Thanks,
> > > 
> > > --  
> > > Franz Allan Valencia See | Java Software Engineer  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > 
> > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > 
> > > > From and size are exposed in the REST API as well. You can use scroll  
> > > > request as well, but note that scroll should not be used to execute many  
> > > > concurrent search requests.
> > > > 
> > > > -shay.banon
> > > > 
> > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)wrote:
> > > > 
> > > > > If you are using Java you can use from and size on the builder.
> > > > > 
> > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > 
> > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > 
> > > > > > Currently, I can search for entries in an index + type. But if I wan  
> > > > > > to list it and paginate through it, how can I do that with Elasticsearch?
> > > > > > 
> > > > > > ## Thanks,
> > > > > > 
> > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> 
> --  
> Franz Allan Valencia See | Java Software Engineer  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 16, 2010, 7:46am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/8 "2010-07-16T07:46:10Z")

</div>

So if I understand correctly you just want to paginate on documents stored  
in ES without specifying a query, meaning without specifying the order of  
documents. (As the query is what determines relevancy and order of  
documents). Do you think you can elaborate more on what your goal is?

Lukas

On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Sorry I double checked with the docs and I think I gave you wrong hint.
> 
> Lukas
> 
> On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> 
> > Thanks. But still nothing...
> > 
> > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > {  
> > "query" : { "from" : 0, "size" : 10 }  
> > }  
> > '  
> > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > failure; shardFailures {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > registered for [from]];  
> > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > registered for [from]];  
> > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > registered for [from]];  
> > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > registered for [from]];  
> > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > registered for [from]]; }]"}
> > 
> > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > 
> > > Hi,
> > > 
> > > if I am not mistaken then you are missing a "query" portion in your JSON.
> > > 
> > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > {  
> > > "query" : {  
> > > "from" : 0, "size" : 10  
> > > }  
> > > }  
> > > '
> > > 
> > > Regards,  
> > > Lukas
> > > 
> > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > 
> > > > Pardon, but how exactly?
> > > > 
> > > > I'm getting this:  
> > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d  
> > > > '
> > > > 
> > > > > {  
> > > > > "from" : 0, "size" : 10  
> > > > > }  
> > > > > '  
> > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > > > failure; shardFailures  
> > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > Failure [No query specified in search  
> > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > Failure [No query specified in search  
> > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > Failure [No query specified in search  
> > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > Failure [No query specified in search  
> > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > Failure [No query specified in search request]]}]"}
> > > > 
> > > > I didn't enter a query because I wanted to see all contents of the  
> > > > myindex/myType.
> > > > 
> > > > Thanks,
> > > > 
> > > > --  
> > > > Franz Allan Valencia See | Java Software Engineer  
> > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > 
> > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > 
> > > > > From and size are exposed in the REST API as well. You can use scroll  
> > > > > request as well, but note that scroll should not be used to execute many  
> > > > > concurrent search requests.
> > > > > 
> > > > > -shay.banon
> > > > > 
> > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)wrote:
> > > > > 
> > > > > > If you are using Java you can use from and size on the builder.
> > > > > > 
> > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > 
> > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > 
> > > > > > > Currently, I can search for entries in an index + type. But if I wan  
> > > > > > > to list it and paginate through it, how can I do that with Elasticsearch?
> > > > > > > 
> > > > > > > ## Thanks,
> > > > > > > 
> > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > 
> > --  
> > Franz Allan Valencia See | Java Software Engineer  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 16, 2010, 7:53am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/9 "2010-07-16T07:53:22Z")

</div>

May be you can try use Match All Query (  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/query\_dsl/match\_all\_query/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/match_all_query/)  
)

curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
{  
"match\_all" : {},  
"from" : 0, "size" : 10  
}  
'

Lukas

On Fri, Jul 16, 2010 at 9:46 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> So if I understand correctly you just want to paginate on documents stored  
> in ES without specifying a query, meaning without specifying the order of  
> documents. (As the query is what determines relevancy and order of  
> documents). Do you think you can elaborate more on what your goal is?
> 
> Lukas
> 
> On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > Sorry I double checked with the docs and I think I gave you wrong hint.
> > 
> > Lukas
> > 
> > On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > 
> > > Thanks. But still nothing...
> > > 
> > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d  
> > > '  
> > > {  
> > > "query" : { "from" : 0, "size" : 10 }  
> > > }  
> > > '  
> > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > failure; shardFailures {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > registered for [from]];  
> > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > registered for [from]];  
> > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > registered for [from]];  
> > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > registered for [from]];  
> > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > registered for [from]]; }]"}
> > > 
> > > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > 
> > > > Hi,
> > > > 
> > > > if I am not mistaken then you are missing a "query" portion in your  
> > > > JSON.
> > > > 
> > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > {  
> > > > "query" : {  
> > > > "from" : 0, "size" : 10  
> > > > }  
> > > > }  
> > > > '
> > > > 
> > > > Regards,  
> > > > Lukas
> > > > 
> > > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > 
> > > > > Pardon, but how exactly?
> > > > > 
> > > > > I'm getting this:  
> > > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search-d](http://localhost:9200/myindex/myType/_search-d) '
> > > > > 
> > > > > > {  
> > > > > > "from" : 0, "size" : 10  
> > > > > > }  
> > > > > > '  
> > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > > > > failure; shardFailures  
> > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > > Failure [No query specified in search  
> > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > > Failure [No query specified in search  
> > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > > Failure [No query specified in search  
> > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > > Failure [No query specified in search  
> > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > > Failure [No query specified in search request]]}]"}
> > > > > 
> > > > > I didn't enter a query because I wanted to see all contents of the  
> > > > > myindex/myType.
> > > > > 
> > > > > Thanks,
> > > > > 
> > > > > --  
> > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > 
> > > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > > 
> > > > > > From and size are exposed in the REST API as well. You can use scroll  
> > > > > > request as well, but note that scroll should not be used to execute many  
> > > > > > concurrent search requests.
> > > > > > 
> > > > > > -shay.banon
> > > > > > 
> > > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)wrote:
> > > > > > 
> > > > > > > If you are using Java you can use from and size on the builder.
> > > > > > > 
> > > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > > 
> > > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > 
> > > > > > > > Currently, I can search for entries in an index + type. But if I wan  
> > > > > > > > to list it and paginate through it, how can I do that with Elasticsearch?
> > > > > > > > 
> > > > > > > > ## Thanks,
> > > > > > > > 
> > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > 
> > > --  
> > > Franz Allan Valencia See | Java Software Engineer  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 16, 2010, 8:04am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/10 "2010-07-16T08:04:32Z")

</div>

Here is the query you can use (finally I tested this on my system and it  
works!). I was missing the "query" portion of JSON in my previous post.

curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
{  
"query" : { "match\_all" : {}},  
"from" : 0, "size" : 10  
}  
'  
Regards,  
Lukas

On Fri, Jul 16, 2010 at 9:53 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> May be you can try use Match All Query (  
> [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/query\_dsl/match\_all\_query/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/match_all_query/)  
> )
> 
> curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> {  
> "match\_all" : {},  
> "from" : 0, "size" : 10  
> }  
> '
> 
> Lukas
> 
> On Fri, Jul 16, 2010 at 9:46 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > So if I understand correctly you just want to paginate on documents stored  
> > in ES without specifying a query, meaning without specifying the order of  
> > documents. (As the query is what determines relevancy and order of  
> > documents). Do you think you can elaborate more on what your goal is?
> > 
> > Lukas
> > 
> > On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > 
> > > Sorry I double checked with the docs and I think I gave you wrong hint.
> > > 
> > > Lukas
> > > 
> > > On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > 
> > > > Thanks. But still nothing...
> > > > 
> > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d  
> > > > '  
> > > > {  
> > > > "query" : { "from" : 0, "size" : 10 }  
> > > > }  
> > > > '  
> > > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > > failure; shardFailures {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > > > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > registered for [from]];  
> > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > > > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > registered for [from]];  
> > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > > > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > registered for [from]];  
> > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > > > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > registered for [from]];  
> > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > > > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > registered for [from]]; }]"}
> > > > 
> > > > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > 
> > > > > Hi,
> > > > > 
> > > > > if I am not mistaken then you are missing a "query" portion in your  
> > > > > JSON.
> > > > > 
> > > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > {  
> > > > > "query" : {  
> > > > > "from" : 0, "size" : 10  
> > > > > }  
> > > > > }  
> > > > > '
> > > > > 
> > > > > Regards,  
> > > > > Lukas
> > > > > 
> > > > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > 
> > > > > > Pardon, but how exactly?
> > > > > > 
> > > > > > I'm getting this:  
> > > > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search-d](http://localhost:9200/myindex/myType/_search-d) '
> > > > > > 
> > > > > > > {  
> > > > > > > "from" : 0, "size" : 10  
> > > > > > > }  
> > > > > > > '  
> > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > total failure; shardFailures  
> > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > > > Failure [No query specified in search  
> > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > > > Failure [No query specified in search  
> > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > > > Failure [No query specified in search  
> > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > > > Failure [No query specified in search  
> > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > > > Failure [No query specified in search request]]}]"}
> > > > > > 
> > > > > > I didn't enter a query because I wanted to see all contents of the  
> > > > > > myindex/myType.
> > > > > > 
> > > > > > Thanks,
> > > > > > 
> > > > > > --  
> > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > 
> > > > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > > > 
> > > > > > > From and size are exposed in the REST API as well. You can use scroll  
> > > > > > > request as well, but note that scroll should not be used to execute many  
> > > > > > > concurrent search requests.
> > > > > > > 
> > > > > > > -shay.banon
> > > > > > > 
> > > > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle \<[samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)
> > > > > > > 
> > > > > > > > wrote:
> > > > > > > 
> > > > > > > > If you are using Java you can use from and size on the builder.
> > > > > > > > 
> > > > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > > > 
> > > > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > 
> > > > > > > > > Currently, I can search for entries in an index + type. But if I  
> > > > > > > > > wan to list it and paginate through it, how can I do that with  
> > > > > > > > > Elasticsearch?
> > > > > > > > > 
> > > > > > > > > ## Thanks,
> > > > > > > > > 
> > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > 
> > > > --  
> > > > Franz Allan Valencia See | Java Software Engineer  
> > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Franz\_Allan\_Valencia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/franz_allan_valencia/32/3326_2.png) [@Franz\_Allan\_Valencia](https://discuss.elastic.co/u/Franz_Allan_Valencia)\
**Post date:** [July 16, 2010, 8:06am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/11 "2010-07-16T08:06:39Z")

</div>

Thanks!, It works ! 😃

curl -XGET [http://localhost:9200/myindex/myType/\_search?pretty=1](http://localhost:9200/myindex/myType/_search?pretty=1) -d '  
{  
"query" : { "match\_all" : { } }  
}  
'

On Fri, Jul 16, 2010 at 4:04 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Here is the query you can use (finally I tested this on my system and it  
> works!). I was missing the "query" portion of JSON in my previous post.
> 
> curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> {  
> "query" : { "match\_all" : {}},  
> "from" : 0, "size" : 10  
> }  
> '  
> Regards,  
> Lukas
> 
> On Fri, Jul 16, 2010 at 9:53 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > May be you can try use Match All Query (  
> > [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/query\_dsl/match\_all\_query/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/match_all_query/)  
> > )
> > 
> > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > {  
> > "match\_all" : {},  
> > "from" : 0, "size" : 10  
> > }  
> > '
> > 
> > Lukas
> > 
> > On Fri, Jul 16, 2010 at 9:46 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > 
> > > So if I understand correctly you just want to paginate on documents  
> > > stored in ES without specifying a query, meaning without specifying the  
> > > order of documents. (As the query is what determines relevancy and order of  
> > > documents). Do you think you can elaborate more on what your goal is?
> > > 
> > > Lukas
> > > 
> > > On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > 
> > > > Sorry I double checked with the docs and I think I gave you wrong hint.
> > > > 
> > > > Lukas
> > > > 
> > > > On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > 
> > > > > Thanks. But still nothing...
> > > > > 
> > > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search-d](http://localhost:9200/myindex/myType/_search-d) '  
> > > > > {  
> > > > > "query" : { "from" : 0, "size" : 10 }  
> > > > > }  
> > > > > '  
> > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query] total  
> > > > > failure; shardFailures {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > > > > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > registered for [from]];  
> > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > > > > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > registered for [from]];  
> > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > > > > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > registered for [from]];  
> > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > > > > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > registered for [from]];  
> > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > > > > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > registered for [from]]; }]"}
> > > > > 
> > > > > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > > 
> > > > > > Hi,
> > > > > > 
> > > > > > if I am not mistaken then you are missing a "query" portion in your  
> > > > > > JSON.
> > > > > > 
> > > > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > > {  
> > > > > > "query" : {  
> > > > > > "from" : 0, "size" : 10  
> > > > > > }  
> > > > > > }  
> > > > > > '
> > > > > > 
> > > > > > Regards,  
> > > > > > Lukas
> > > > > > 
> > > > > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > 
> > > > > > > Pardon, but how exactly?
> > > > > > > 
> > > > > > > I'm getting this:  
> > > > > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search-d](http://localhost:9200/myindex/myType/_search-d) '
> > > > > > > 
> > > > > > > > {  
> > > > > > > > "from" : 0, "size" : 10  
> > > > > > > > }  
> > > > > > > > '  
> > > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > > total failure; shardFailures  
> > > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > > > > Failure [No query specified in search  
> > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > > > > Failure [No query specified in search  
> > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > > > > Failure [No query specified in search  
> > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > > > > Failure [No query specified in search  
> > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > > > > Failure [No query specified in search request]]}]"}
> > > > > > > 
> > > > > > > I didn't enter a query because I wanted to see all contents of the  
> > > > > > > myindex/myType.
> > > > > > > 
> > > > > > > Thanks,
> > > > > > > 
> > > > > > > --  
> > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > > 
> > > > > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > > > > 
> > > > > > > > From and size are exposed in the REST API as well. You can use  
> > > > > > > > scroll request as well, but note that scroll should not be used to execute  
> > > > > > > > many concurrent search requests.
> > > > > > > > 
> > > > > > > > -shay.banon
> > > > > > > > 
> > > > > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle \<  
> > > > > > > > [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)\> wrote:
> > > > > > > > 
> > > > > > > > > If you are using Java you can use from and size on the builder.
> > > > > > > > > 
> > > > > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > > > > 
> > > > > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > > 
> > > > > > > > > > Currently, I can search for entries in an index + type. But if I  
> > > > > > > > > > wan to list it and paginate through it, how can I do that with  
> > > > > > > > > > Elasticsearch?
> > > > > > > > > > 
> > > > > > > > > > ## Thanks,
> > > > > > > > > > 
> > > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > 
> > > > > --  
> > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

--  
Franz Allan Valencia See | Java Software Engineer  
[franz.see@gmail.com](mailto:franz.see@gmail.com)  
LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Lukas\_Vlcek1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas_vlcek1/32/819_2.png) [@Lukas\_Vlcek1](https://discuss.elastic.co/u/Lukas_Vlcek1)\
**Post date:** [July 16, 2010, 8:10am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/12 "2010-07-16T08:10:29Z")

</div>

Good! Sorry for all that mess... I am kind slower this morning :-/  
Just one more note, I am not sure you can count on any particular order of  
returned documents in this case.

Regards,  
Lukas

On Fri, Jul 16, 2010 at 10:06 AM, Franz Allan Valencia See \<  
[franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:

> Thanks!, It works ! 😃
> 
> curl -XGET [http://localhost:9200/myindex/myType/\_search?pretty=1](http://localhost:9200/myindex/myType/_search?pretty=1) -d '  
> {  
> "query" : { "match\_all" : { } }  
> }  
> '
> 
> On Fri, Jul 16, 2010 at 4:04 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > Here is the query you can use (finally I tested this on my system and it  
> > works!). I was missing the "query" portion of JSON in my previous post.
> > 
> > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > {  
> > "query" : { "match\_all" : {}},  
> > "from" : 0, "size" : 10  
> > }  
> > '  
> > Regards,  
> > Lukas
> > 
> > On Fri, Jul 16, 2010 at 9:53 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > 
> > > May be you can try use Match All Query (  
> > > [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/query\_dsl/match\_all\_query/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/match_all_query/)  
> > > )
> > > 
> > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > {  
> > > "match\_all" : {},  
> > > "from" : 0, "size" : 10  
> > > }  
> > > '
> > > 
> > > Lukas
> > > 
> > > On Fri, Jul 16, 2010 at 9:46 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > 
> > > > So if I understand correctly you just want to paginate on documents  
> > > > stored in ES without specifying a query, meaning without specifying the  
> > > > order of documents. (As the query is what determines relevancy and order of  
> > > > documents). Do you think you can elaborate more on what your goal is?
> > > > 
> > > > Lukas
> > > > 
> > > > On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > 
> > > > > Sorry I double checked with the docs and I think I gave you wrong hint.
> > > > > 
> > > > > Lukas
> > > > > 
> > > > > On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > 
> > > > > > Thanks. But still nothing...
> > > > > > 
> > > > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search-d](http://localhost:9200/myindex/myType/_search-d) '  
> > > > > > {  
> > > > > > "query" : { "from" : 0, "size" : 10 }  
> > > > > > }  
> > > > > > '  
> > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > total failure; shardFailures  
> > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > > > > > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > registered for [from]];  
> > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > > > > > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > registered for [from]];  
> > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > > > > > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > registered for [from]];  
> > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > > > > > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > registered for [from]];  
> > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > > > > > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > registered for [from]]; }]"}
> > > > > > 
> > > > > > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > > > 
> > > > > > > Hi,
> > > > > > > 
> > > > > > > if I am not mistaken then you are missing a "query" portion in your  
> > > > > > > JSON.
> > > > > > > 
> > > > > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > > > {  
> > > > > > > "query" : {  
> > > > > > > "from" : 0, "size" : 10  
> > > > > > > }  
> > > > > > > }  
> > > > > > > '
> > > > > > > 
> > > > > > > Regards,  
> > > > > > > Lukas
> > > > > > > 
> > > > > > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > 
> > > > > > > > Pardon, but how exactly?
> > > > > > > > 
> > > > > > > > I'm getting this:  
> > > > > > > > franz@see:~$ curl -XGET  
> > > > > > > > [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '
> > > > > > > > 
> > > > > > > > > {  
> > > > > > > > > "from" : 0, "size" : 10  
> > > > > > > > > }  
> > > > > > > > > '  
> > > > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > > > total failure; shardFailures  
> > > > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > > > > > Failure [No query specified in search  
> > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > > > > > Failure [No query specified in search  
> > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > > > > > Failure [No query specified in search  
> > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > > > > > Failure [No query specified in search  
> > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > > > > > Failure [No query specified in search request]]}]"}
> > > > > > > > 
> > > > > > > > I didn't enter a query because I wanted to see all contents of the  
> > > > > > > > myindex/myType.
> > > > > > > > 
> > > > > > > > Thanks,
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > > > 
> > > > > > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > > > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > > > > > 
> > > > > > > > > From and size are exposed in the REST API as well. You can use  
> > > > > > > > > scroll request as well, but note that scroll should not be used to execute  
> > > > > > > > > many concurrent search requests.
> > > > > > > > > 
> > > > > > > > > -shay.banon
> > > > > > > > > 
> > > > > > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle \<  
> > > > > > > > > [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)\> wrote:
> > > > > > > > > 
> > > > > > > > > > If you are using Java you can use from and size on the builder.
> > > > > > > > > > 
> > > > > > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > > > > > 
> > > > > > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > > > 
> > > > > > > > > > > Currently, I can search for entries in an index + type. But if I  
> > > > > > > > > > > wan to list it and paginate through it, how can I do that with  
> > > > > > > > > > > Elasticsearch?
> > > > > > > > > > > 
> > > > > > > > > > > ## Thanks,
> > > > > > > > > > > 
> > > > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > 
> > > > > > --  
> > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> 
> --  
> Franz Allan Valencia See | Java Software Engineer  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![Franz\_Allan\_Valencia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/franz_allan_valencia/32/3326_2.png) [@Franz\_Allan\_Valencia](https://discuss.elastic.co/u/Franz_Allan_Valencia)\
**Post date:** [July 16, 2010, 8:20am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/13 "2010-07-16T08:20:31Z")

</div>

Thanks for the warning. But I'm planning to find the max on one field  
actually which means I'm planning to use it with the "sort" functionality (  
[http://www.elasticsearch.com/docs/elasticsearch/rest\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/search/)) 🙂

Thanks,

--  
Franz Allan Valencia See | Java Software Engineer  
[franz.see@gmail.com](mailto:franz.see@gmail.com)  
LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

On Fri, Jul 16, 2010 at 4:10 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com) wrote:

> Good! Sorry for all that mess... I am kind slower this morning :-/  
> Just one more note, I am not sure you can count on any particular order of  
> returned documents in this case.
> 
> Regards,  
> Lukas
> 
> On Fri, Jul 16, 2010 at 10:06 AM, Franz Allan Valencia See \<  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> 
> > Thanks!, It works ! 😃
> > 
> > curl -XGET [http://localhost:9200/myindex/myType/\_search?pretty=1](http://localhost:9200/myindex/myType/_search?pretty=1) -d '  
> > {  
> > "query" : { "match\_all" : { } }  
> > }  
> > '
> > 
> > On Fri, Jul 16, 2010 at 4:04 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > 
> > > Here is the query you can use (finally I tested this on my system and it  
> > > works!). I was missing the "query" portion of JSON in my previous post.
> > > 
> > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > {  
> > > "query" : { "match\_all" : {}},  
> > > "from" : 0, "size" : 10  
> > > }  
> > > '  
> > > Regards,  
> > > Lukas
> > > 
> > > On Fri, Jul 16, 2010 at 9:53 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > 
> > > > May be you can try use Match All Query (  
> > > > [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/query\_dsl/match\_all\_query/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/match_all_query/)  
> > > > )
> > > > 
> > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > {  
> > > > "match\_all" : {},  
> > > > "from" : 0, "size" : 10  
> > > > }  
> > > > '
> > > > 
> > > > Lukas
> > > > 
> > > > On Fri, Jul 16, 2010 at 9:46 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > 
> > > > > So if I understand correctly you just want to paginate on documents  
> > > > > stored in ES without specifying a query, meaning without specifying the  
> > > > > order of documents. (As the query is what determines relevancy and order of  
> > > > > documents). Do you think you can elaborate more on what your goal is?
> > > > > 
> > > > > Lukas
> > > > > 
> > > > > On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > > 
> > > > > > Sorry I double checked with the docs and I think I gave you wrong  
> > > > > > hint.
> > > > > > 
> > > > > > Lukas
> > > > > > 
> > > > > > On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > 
> > > > > > > Thanks. But still nothing...
> > > > > > > 
> > > > > > > franz@see:~$ curl -XGET [http://localhost:9200/myindex/myType/\_search-d](http://localhost:9200/myindex/myType/_search-d) '  
> > > > > > > {  
> > > > > > > "query" : { "from" : 0, "size" : 10 }  
> > > > > > > }  
> > > > > > > '  
> > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > total failure; shardFailures  
> > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > > > > > > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > registered for [from]];  
> > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > > > > > > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > registered for [from]];  
> > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > > > > > > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > registered for [from]];  
> > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > > > > > > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > registered for [from]];  
> > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > > > > > > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > registered for [from]]; }]"}
> > > > > > > 
> > > > > > > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > > > > 
> > > > > > > > Hi,
> > > > > > > > 
> > > > > > > > if I am not mistaken then you are missing a "query" portion in your  
> > > > > > > > JSON.
> > > > > > > > 
> > > > > > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > > > > {  
> > > > > > > > "query" : {  
> > > > > > > > "from" : 0, "size" : 10  
> > > > > > > > }  
> > > > > > > > }  
> > > > > > > > '
> > > > > > > > 
> > > > > > > > Regards,  
> > > > > > > > Lukas
> > > > > > > > 
> > > > > > > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > 
> > > > > > > > > Pardon, but how exactly?
> > > > > > > > > 
> > > > > > > > > I'm getting this:  
> > > > > > > > > franz@see:~$ curl -XGET  
> > > > > > > > > [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '
> > > > > > > > > 
> > > > > > > > > > {  
> > > > > > > > > > "from" : 0, "size" : 10  
> > > > > > > > > > }  
> > > > > > > > > > '  
> > > > > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > > > > total failure; shardFailures  
> > > > > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > > > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > > > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > > > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > > > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > > > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > Failure [No query specified in search request]]}]"}
> > > > > > > > > 
> > > > > > > > > I didn't enter a query because I wanted to see all contents of the  
> > > > > > > > > myindex/myType.
> > > > > > > > > 
> > > > > > > > > Thanks,
> > > > > > > > > 
> > > > > > > > > --  
> > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > > > > 
> > > > > > > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > > > > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > > > > > > 
> > > > > > > > > > From and size are exposed in the REST API as well. You can use  
> > > > > > > > > > scroll request as well, but note that scroll should not be used to execute  
> > > > > > > > > > many concurrent search requests.
> > > > > > > > > > 
> > > > > > > > > > -shay.banon
> > > > > > > > > > 
> > > > > > > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle \<  
> > > > > > > > > > [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)\> wrote:
> > > > > > > > > > 
> > > > > > > > > > > If you are using Java you can use from and size on the builder.
> > > > > > > > > > > 
> > > > > > > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > > > > > > 
> > > > > > > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > > > > 
> > > > > > > > > > > > Currently, I can search for entries in an index + type. But if I  
> > > > > > > > > > > > wan to list it and paginate through it, how can I do that with  
> > > > > > > > > > > > Elasticsearch?
> > > > > > > > > > > > 
> > > > > > > > > > > > ## Thanks,
> > > > > > > > > > > > 
> > > > > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > > 
> > > > > > > --  
> > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > 
> > --  
> > Franz Allan Valencia See | Java Software Engineer  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 16, 2010, 11:18am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/14 "2010-07-16T11:18:21Z")

</div>

In 0.9, you will be able to use the statistical facet to get the maximum  
value for a field.

On Fri, Jul 16, 2010 at 11:20 AM, Franz Allan Valencia See \<  
[franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:

> Thanks for the warning. But I'm planning to find the max on one field  
> actually which means I'm planning to use it with the "sort" functionality (  
> [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/search/)) 🙂
> 
> Thanks,
> 
> --  
> Franz Allan Valencia See | Java Software Engineer  
> [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> 
> On Fri, Jul 16, 2010 at 4:10 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> 
> > Good! Sorry for all that mess... I am kind slower this morning :-/  
> > Just one more note, I am not sure you can count on any particular order of  
> > returned documents in this case.
> > 
> > Regards,  
> > Lukas
> > 
> > On Fri, Jul 16, 2010 at 10:06 AM, Franz Allan Valencia See \<  
> > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > 
> > > Thanks!, It works ! 😃
> > > 
> > > curl -XGET [http://localhost:9200/myindex/myType/\_search?pretty=1](http://localhost:9200/myindex/myType/_search?pretty=1) -d '  
> > > {  
> > > "query" : { "match\_all" : { } }  
> > > }  
> > > '
> > > 
> > > On Fri, Jul 16, 2010 at 4:04 PM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > 
> > > > Here is the query you can use (finally I tested this on my system and it  
> > > > works!). I was missing the "query" portion of JSON in my previous post.
> > > > 
> > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > {  
> > > > "query" : { "match\_all" : {}},  
> > > > "from" : 0, "size" : 10  
> > > > }  
> > > > '  
> > > > Regards,  
> > > > Lukas
> > > > 
> > > > On Fri, Jul 16, 2010 at 9:53 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > 
> > > > > May be you can try use Match All Query (  
> > > > > [http://www.elasticsearch.com/docs/elasticsearch/rest\_api/query\_dsl/match\_all\_query/](http://www.elasticsearch.com/docs/elasticsearch/rest_api/query_dsl/match_all_query/)  
> > > > > )
> > > > > 
> > > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > {  
> > > > > "match\_all" : {},  
> > > > > "from" : 0, "size" : 10  
> > > > > }  
> > > > > '
> > > > > 
> > > > > Lukas
> > > > > 
> > > > > On Fri, Jul 16, 2010 at 9:46 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > > 
> > > > > > So if I understand correctly you just want to paginate on documents  
> > > > > > stored in ES without specifying a query, meaning without specifying the  
> > > > > > order of documents. (As the query is what determines relevancy and order of  
> > > > > > documents). Do you think you can elaborate more on what your goal is?
> > > > > > 
> > > > > > Lukas
> > > > > > 
> > > > > > On Fri, Jul 16, 2010 at 9:39 AM, Lukáš Vlček [lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)wrote:
> > > > > > 
> > > > > > > Sorry I double checked with the docs and I think I gave you wrong  
> > > > > > > hint.
> > > > > > > 
> > > > > > > Lukas
> > > > > > > 
> > > > > > > On Fri, Jul 16, 2010 at 9:34 AM, Franz Allan Valencia See \<  
> > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > 
> > > > > > > > Thanks. But still nothing...
> > > > > > > > 
> > > > > > > > franz@see:~$ curl -XGET  
> > > > > > > > [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > > > > {  
> > > > > > > > "query" : { "from" : 0, "size" : 10 }  
> > > > > > > > }  
> > > > > > > > '  
> > > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > > total failure; shardFailures  
> > > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][myindex][4]:  
> > > > > > > > SearchParseException[[myindex][4]: query[null],from[-1],size[-1]: Parse  
> > > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > > registered for [from]];  
> > > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][2]:  
> > > > > > > > SearchParseException[[myindex][2]: query[null],from[-1],size[-1]: Parse  
> > > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > > registered for [from]];  
> > > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][0]:  
> > > > > > > > SearchParseException[[myindex][0]: query[null],from[-1],size[-1]: Parse  
> > > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > > registered for [from]];  
> > > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][1]:  
> > > > > > > > SearchParseException[[myindex][1]: query[null],from[-1],size[-1]: Parse  
> > > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > > registered for [from]];  
> > > > > > > > }{[abaf7629-100b-4740-a716-56823787a3b9][myindex][3]:  
> > > > > > > > SearchParseException[[myindex][3]: query[null],from[-1],size[-1]: Parse  
> > > > > > > > Failure [Failed to parse [\n{\n "query" : { "from" : 0, "size" : 10  
> > > > > > > > }\n}\n]]]; nested: QueryParsingException[[myindex] No query parser  
> > > > > > > > registered for [from]]; }]"}
> > > > > > > > 
> > > > > > > > On Fri, Jul 16, 2010 at 3:31 PM, Lukáš Vlček \<[lukas.vlcek@gmail.com](mailto:lukas.vlcek@gmail.com)
> > > > > > > > 
> > > > > > > > > wrote:
> > > > > > > > 
> > > > > > > > > Hi,
> > > > > > > > > 
> > > > > > > > > if I am not mistaken then you are missing a "query" portion in your  
> > > > > > > > > JSON.
> > > > > > > > > 
> > > > > > > > > curl -XGET [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '  
> > > > > > > > > {  
> > > > > > > > > "query" : {  
> > > > > > > > > "from" : 0, "size" : 10  
> > > > > > > > > }  
> > > > > > > > > }  
> > > > > > > > > '
> > > > > > > > > 
> > > > > > > > > Regards,  
> > > > > > > > > Lukas
> > > > > > > > > 
> > > > > > > > > On Fri, Jul 16, 2010 at 9:24 AM, Franz Allan Valencia See \<  
> > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > > 
> > > > > > > > > > Pardon, but how exactly?
> > > > > > > > > > 
> > > > > > > > > > I'm getting this:  
> > > > > > > > > > franz@see:~$ curl -XGET  
> > > > > > > > > > [http://localhost:9200/myindex/myType/\_search](http://localhost:9200/myindex/myType/_search) -d '
> > > > > > > > > > 
> > > > > > > > > > > {  
> > > > > > > > > > > "from" : 0, "size" : 10  
> > > > > > > > > > > }  
> > > > > > > > > > > '  
> > > > > > > > > > > {"error":"SearchPhaseExecutionException[Failed to execute [query]  
> > > > > > > > > > > total failure; shardFailures  
> > > > > > > > > > > {[abaf7629-100b-4740-a716-56823787a3b9][application][0]:  
> > > > > > > > > > > SearchParseException[[application][0]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][4]:  
> > > > > > > > > > > SearchParseException[[application][4]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][3]:  
> > > > > > > > > > > SearchParseException[[application][3]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][2]:  
> > > > > > > > > > > SearchParseException[[application][2]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > > Failure [No query specified in search  
> > > > > > > > > > > request]]}{[abaf7629-100b-4740-a716-56823787a3b9][application][1]:  
> > > > > > > > > > > SearchParseException[[application][1]: query[null],from[0],size[10]: Parse  
> > > > > > > > > > > Failure [No query specified in search request]]}]"}
> > > > > > > > > > 
> > > > > > > > > > I didn't enter a query because I wanted to see all contents of the  
> > > > > > > > > > myindex/myType.
> > > > > > > > > > 
> > > > > > > > > > Thanks,
> > > > > > > > > > 
> > > > > > > > > > --  
> > > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > > > > > 
> > > > > > > > > > On Tue, Jul 13, 2010 at 1:59 AM, Shay Banon \<  
> > > > > > > > > > [shay.banon@elasticsearch.com](mailto:shay.banon@elasticsearch.com)\> wrote:
> > > > > > > > > > 
> > > > > > > > > > > From and size are exposed in the REST API as well. You can use  
> > > > > > > > > > > scroll request as well, but note that scroll should not be used to execute  
> > > > > > > > > > > many concurrent search requests.
> > > > > > > > > > > 
> > > > > > > > > > > -shay.banon
> > > > > > > > > > > 
> > > > > > > > > > > On Mon, Jul 12, 2010 at 8:21 AM, Samuel Doyle \<  
> > > > > > > > > > > [samueldoyle@gmail.com](mailto:samueldoyle@gmail.com)\> wrote:
> > > > > > > > > > > 
> > > > > > > > > > > > If you are using Java you can use from and size on the builder.
> > > > > > > > > > > > 
> > > > > > > > > > > > [http://www.elasticsearch.com/docs/elasticsearch/java\_api/search/](http://www.elasticsearch.com/docs/elasticsearch/java_api/search/)
> > > > > > > > > > > > 
> > > > > > > > > > > > On Sun, Jul 11, 2010 at 8:06 PM, Franz Allan Valencia See \<  
> > > > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)\> wrote:
> > > > > > > > > > > > 
> > > > > > > > > > > > > Currently, I can search for entries in an index + type. But if  
> > > > > > > > > > > > > I wan to list it and paginate through it, how can I do that with  
> > > > > > > > > > > > > Elasticsearch?
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ## Thanks,
> > > > > > > > > > > > > 
> > > > > > > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > > > > > > 
> > > > > > > > --  
> > > > > > > > Franz Allan Valencia See | Java Software Engineer  
> > > > > > > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > > > > > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > > > > > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)
> > > 
> > > --  
> > > Franz Allan Valencia See | Java Software Engineer  
> > > [franz.see@gmail.com](mailto:franz.see@gmail.com)  
> > > LinkedIn: [http://www.linkedin.com/in/franzsee](http://www.linkedin.com/in/franzsee)  
> > > Twitter: [http://www.twitter.com/franz\_see](http://www.twitter.com/franz_see)

---

<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, 4:22am UTC](https://discuss.elastic.co/t/list-all-entries-in-an-index-type/3086/15 "2017-07-06T04:22:08Z")

</div>


