Unexpected number of hits with scroll search

When I specify a 'size' for a scroll search, based on the documentation I've seen, I expect to get back * results, but what I'm seeing is just results. When I run the following query as a test, I only get 1 hit returned:


I am seeing the same results using the Java TransportClient, trying to get 50 results per shard (I only got a total of 50 back). Am I missing something?

This is a ES 2.3.1 cluster w/ around ~1900 primary shards across ~290 indexes.


size :The number of hits to return. Defaults to 10.


Unfortunately, my understanding is that scroll is a special case. The documentation on using scrolls in the Java API contains a special note regarding size and I have seen this discussed in various GitHub issues as well.