Interface PagedSearcher<T>
@ExperimentalApi
public interface PagedSearcher<T>
Interface for iterating over search results with paged approach.
-
Method Summary
Modifier and TypeMethodDescriptionasIterable(int batchSize) ReturnsIterablefetching subsequent results in batches of the given size.fetchNextBatch(int batchSize) Returns subsequent batch of results for the query provided when creating this searcher.
-
Method Details
-
fetchNextBatch
Returns subsequent batch of results for the query provided when creating this searcher. -
asIterable
ReturnsIterablefetching subsequent results in batches of the given size. ReturnedIterableskips results that were fetched directly usingfetchNextBatch(int).
-