diff --git a/src/com/thunken/sandow/Index.java b/src/com/thunken/sandow/Index.java index d0e4ec0..32fc0f4 100644 --- a/src/com/thunken/sandow/Index.java +++ b/src/com/thunken/sandow/Index.java @@ -448,7 +448,7 @@ default Stream streamSearchHits() { default Stream streamSearchHits(final QueryBuilder queryBuilder) { return StreamSupport.stream( - prepareSearchAfterSpliterator().searchRequest(prepareSearch().setQuery(queryBuilder)).build(), false); + prepareScrollingSpliterator().searchRequest(prepareSearch().setQuery(queryBuilder)).build(), false); } /**