A getHits() was forgotten!
(cherry picked from commit 11b3053) (cherry picked from commit 89294e9)
This commit is contained in:
parent
5acf565e05
commit
5c57db4aae
|
@ -63,7 +63,7 @@ SearchResponse scrollResp = client.prepareSearch(test)
|
|||
//Scroll until no hits are returned
|
||||
while (true) {
|
||||
|
||||
for (SearchHit hit : scrollResp.getHits()) {
|
||||
for (SearchHit hit : scrollResp.getHits().getHits()) {
|
||||
//Handle the hit...
|
||||
}
|
||||
scrollResp = client.prepareSearchScroll(scrollResp.getScrollId()).setScroll(new TimeValue(600000)).execute().actionGet();
|
||||
|
|
Loading…
Reference in New Issue