Skip to content

gsf/elasticsearch-each

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

elasticsearch-each

Efficiently loop over documents in elasticsearch. Handy for reporting.

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);
});

About

loop over documents in elasticsearch

Resources

Stars

Watchers

Forks

Packages

No packages published