Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gsf/elasticsearch-each

loop over documents in elasticsearch
https://github.com/gsf/elasticsearch-each

Last synced: 19 days ago
JSON representation

loop over documents in elasticsearch

Awesome Lists containing this project

README

        

# elasticsearch-each

Efficiently loop over documents in elasticsearch. Handy for reporting.

```js
var each = require('elasticsearch-each');

each({
url: 'http://localhost:9200/test',
query: {
match: {
title: 'elasticsearch'
}
}
}, function (err, doc) {
if (err) console.error(err);
console.log(doc);
});
```