elasticscroll

0.0.6 • Public • Published

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"queryprint_to_console)
 
es.scroll().catch(console.log)

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

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i elasticscroll

    Weekly Downloads

    1

    Version

    0.0.6

    License

    MIT

    Last publish

    Collaborators

    • grahamjenson