Are you sure that calling the same scroll_id won't return the next results?
AFAIK, the scroll_id can be the same and still return new records 2015-04-14 14:26 GMT-03:00 Todd Nine <[email protected]>: > Hey guys, > I have 2 indexes. I have a read alias on both of the indexes (A and B), > and a write alias on 1 (B). I then insert 10 documents to the write alias > which inserts them into index B. I perform the following query. > > { > "from" : 0, > "size" : 1, > "post_filter" : { > "bool" : { > "must" : { > "term" : { > "edgeSearch" : > "4cd2ba95-e2c9-11e4-bb39-c6c6eebe8d56_application__4cd2ba96-e2c9-11e4-bb39-c6c6eebe8d56_owner__users__SOURCE" > } > } > } > }, > "sort" : [ { > "fields.double" : { > "order" : "asc", > "nested_filter" : { > "term" : { > "name" : "ordinal" > } > } > } > }, { > "fields.long" : { > "order" : "asc", > "nested_filter" : { > "term" : { > "name" : "ordinal" > } > } > } > }, { > "fields.string.exact" : { > "order" : "asc", > "nested_filter" : { > "term" : { > "name" : "ordinal" > } > } > } > }, { > "fields.boolean" : { > "order" : "asc", > "nested_filter" : { > "term" : { > "name" : "ordinal" > } > } > } > } ] > } > > I receive my first record, and a scroll id, as expected. > > On my next request, I perform a request with the the scroll Id from the > first response. > > What I expect: I expect to receive my second record, and a new scrollId. > > What I get: I get the first record again, with the same scroll Id. > > I'm on a 1.4.4 server, with a 1.4.4 node client running locally > integration testing. > > > When I use the same logic on a read alias with a single index, I do not > experience this problem, so I'm reasonably certain my client is coded > correctly. > > > Any ideas? > > Thanks, > Todd > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/8a317e5f-eb6f-4aef-a257-3902d31c3567%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/8a317e5f-eb6f-4aef-a257-3902d31c3567%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAJp2530z-FubTUaxd7rRUDLHahRD3SD1Dz1r7nhF9PJkycdsuA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
