SearchType SCAN and Size

Hi guys,

If I scroll over scanned search response, the size of the initial search
request will be ignored?

initial SearchRequest to get scroll ID:
client.prepareSearch(index).setSearchType(SearchType.SCAN).setScroll(TimeValue.timeValueSeconds(keepTimeInSeconds
<= 0 ? 300 : keepTimeInSeconds)).setSize(50);

ScrolledSearchRequest
client.prepareSearchScroll(scrollId).setScroll(TimeValue.timeValueMinutes(keepTimeInMinutes)).get();

The scrolling works fine, but hits per fetch are not 50!

When I create 1000 documents, I thought there are 20 loops until whole
request is finished? But scrolling search request builds pages with 9 x100
docs , than 78 then 12.
Log:
Progress .... 100/1000
Progress .... 200/1000
Progress .... 300/1000
Progress .... 400/1000
Progress .... 500/1000
Progress .... 600/1000
Progress .... 700/1000
Progress .... 800/1000
Progress .... 900/1000
Progress .... 978/1000
Progress .... 1000/1000

I'm confused about sizeprimShards = pagesize. I have 5 prim. shards. But
50
5 are not 100! Whats wrong on my side?

Best regards
Alex

--
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.
For more options, visit https://groups.google.com/groups/opt_out.

Without searchType SCAN the size works fine during scrolling. Is it right?

--
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.
For more options, visit https://groups.google.com/groups/opt_out.