From 132dc19c32f19d3c1a92468e33598bc5fa980536 Mon Sep 17 00:00:00 2001 From: Luc Boruta Date: Mon, 12 Nov 2018 22:18:37 +0100 Subject: [PATCH] DEV: use the scrolling spliterator by default --- src/com/thunken/sandow/Index.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /**