I use scrolling to page through large sets of documents and noticed recently I hadn't set search_type=scan when I don't need sorting.
Once I enabled search_type=scan I noticed two inconsistencies compared against the default search_type: 1. search_type=scan doesn't return any results when starting to scroll while the default search_type returns the first page of results. (The docs seem to warn this happens, but it seems like a strange inconsistency within the scroll API). 2. search_type=scan doesn't seem to honor size=N The second one is a much bigger deal as I have an API backed by an ES scroll where users can specify the page size they want. You should be able to fully reproduce what I'm seeing using this: https://gist.github.com/schmichael/5c3ff512359262970d16 Do I need to use from=... with size=...? I didn't have to before switching to search_type=scan. I'm using ES 1.1.1 on Ubuntu using the deb provided by ES.org. -- 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/9f0d0560-a5bb-4ca0-8483-e6038291c780%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
