scan is mainly useful as a way to export data from the index. In the context of a user interface, I think scroll would make more sense[1]. On a side note, paging improved significantly for scroll requests in Elasticsearch 1.2 (in both terms of speed and memory usage).
[1] http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html On Wed, May 21, 2014 at 8:28 PM, schmichael <[email protected]> wrote: > On Wednesday, May 21, 2014 11:20:53 AM UTC-7, schmichael wrote: >> >> ... >> 2. search_type=scan doesn't seem to honor size=N >> > > It seems I missed this in the guide: > > "When scanning, the size is applied to each shard, so you will get back a > maximum of size * number_of_primary_shards documents in each batch." > > http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/scan-scroll.html > > ...but that only seems to be the case with the scan search_type. Do I just > have to divide the user's requested page size by my number of shards (5 at > this point)? > > -- > 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/76d3e1eb-f0dd-46f3-a508-7b246b068e21%40googlegroups.com<https://groups.google.com/d/msgid/elasticsearch/76d3e1eb-f0dd-46f3-a508-7b246b068e21%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Adrien Grand -- 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/CAL6Z4j74g0Qqz0VLNDAHDEZ9N%3D2w723vEWaxqicfnQ_Cn1DSfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
