client.prepareSearchScroll(scrollId) return hits[10] by default ?
It's not possible to "setSized" it ?
The initial search the size is set to 100
client .prepareSearch()
.setScroll(SCROLL_TIME)
.setTypes(ES.DEFAULT_USER_TYPE)
.setSize(100)
.setQuery(QueryBuilders.matchQuery("_all",req))
.get().....
return hits[100]
.............
do {
client.prepareSearchScroll(scrollId)
.setScroll(SCROLL_TIME)
.execute()
.actionGet()
....
} while (size != 0)
return hits[10]
No prepareSearchScroll(scrollId).setSize(...) ?