An open API service indexing awesome lists of open source software.

https://github.com/lovasoa/searchhititerator

Java iterator for elasticsearch scrolls
https://github.com/lovasoa/searchhititerator

elasticsearch java

Last synced: 6 months ago
JSON representation

Java iterator for elasticsearch scrolls

Awesome Lists containing this project

README

          

# SearchHitIterator

[![](https://jitpack.io/v/lovasoa/SearchHitIterator.svg)](https://jitpack.io/#lovasoa/SearchHitIterator)

Java iterator for elasticsearch scrolls. Allows to iterate over all the results of an elasticsearch query. This library uses elasticsearch scrolls internally, in order to provide an efficiant way to iterate over large search results.

## Example

```java
SearchRequestBuilder builder = client.prepareSearch();

for (SearchHit hit : new SearchHitIterable(client, builder)) {
// use hit...
}
```