JAVA API 5.0.1 - setSize(x) for prepareSearchScroll(_scrollId) (closed)

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(...) ?

Well, this morning i get hits[100]. Dunno why.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.