elasticscroll

Tool to use the Elasticsearch Scrooll API

Usage no npm install needed!

<script type="module">
  import elasticscroll from 'https://cdn.skypack.dev/elasticscroll';
</script>

README

ElasticScroll

This is a module that implements the scrolling api for Elasticsearch.

To use this module

ElasticScroll = require 'elasticscroll'

query = {"query": {"term" : "bla"}}

print_to_console = function(hit){console.log(hit)}

es = new ElasticScroll("http://localhost:9200", "docs_index", query, print_to_console)

es.scroll().catch(console.log)

Please read the explination of how this works at maori.geek.