Pagination return 0 value

Dear Community Members,

I use this request:
'{
"size": 10, from: 0,
"query": {

                "filtered" : {
                    "query" : {
                        "match_all" : {}
                     },
                     "filter" : {
                        "geo_distance" : {
                            "distance" : 10km",
                            "location" : [10,10]
                        }
                    }
                }
            }
        }'

This request is built dynamically in order to paginate the result.

The first call of this request works, but each other call return 0 value
despite there are more than 10 values left. If I call again the same
request with the exact same value, the request return also 0 value instead
of the same value that the first one.

Exact return is "{"total_rows":278,"rows":[]}"

Is something missing ?

Thanks a lot for your help.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/75a2b7ce-58f9-4737-bf5d-1d0f27d3d7b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

In fact the probleme is global.

When I call both the request belox (without pagination), the first return
result, the second "{"total_rows":278,"rows":[]}"

'{
"query": {

                "filtered" : {
                    "query" : {
                        "match_all" : {}
                     },
                     "filter" : {
                        "geo_distance" : {
                            "distance" : 10km",
                            "location" : [10,10]
                        }
                    }
                }
            }
        }'

Le samedi 15 novembre 2014 18:49:46 UTC+1, Arnaud Coutant a écrit :

Dear Community Members,

I use this request:
'{
"size": 10, from: 0,
"query": {

                "filtered" : {
                    "query" : {
                        "match_all" : {}
                     },
                     "filter" : {
                        "geo_distance" : {
                            "distance" : 10km",
                            "location" : [10,10]
                        }
                    }
                }
            }
        }'

This request is built dynamically in order to paginate the result.

The first call of this request works, but each other call return 0 value
despite there are more than 10 values left. If I call again the same
request with the exact same value, the request return also 0 value instead
of the same value that the first one.

Exact return is "{"total_rows":278,"rows":[]}"

Is something missing ?

Thanks a lot for your help.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/20dc722e-5cd1-422d-b250-37d13495bc15%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Where this rows field comes from?

I know about hits but rows???

David

Le 15 nov. 2014 à 18:49, Arnaud Coutant arnaudco@gmail.com a écrit :

Dear Community Members,

I use this request:
'{
"size": 10, from: 0,
"query": {

                "filtered" : {
                    "query" : {
                        "match_all" : {}
                     },
                     "filter" : {
                        "geo_distance" : {
                            "distance" : 10km",
                            "location" : [10,10]
                        }
                    }
                }
            }
        }'

This request is built dynamically in order to paginate the result.

The first call of this request works, but each other call return 0 value despite there are more than 10 values left. If I call again the same request with the exact same value, the request return also 0 value instead of the same value that the first one.

Exact return is "{"total_rows":278,"rows":[]}"

Is something missing ?

Thanks a lot for your help.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/75a2b7ce-58f9-4737-bf5d-1d0f27d3d7b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/C7C56C22-B951-451E-AEF9-3CCE89DD7347%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.