Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.
/ node-scrollsearch Public archive

[defunct] Scroll through all Elasticsearch search results as a single stream

Notifications You must be signed in to change notification settings

elastic/node-scrollsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elasticsearch Scrolling Search Circle CI

Scroll through all Elasticsearch search results as a single stream

Requirements

  • Node.js >= 4.3.0

Usage

const streamHits = require('@elastic/scrollsearch');

const url = 'http://localhost:9200/logstash-*/_search';
const params = { query: { term: { response: 200 } } };

streamHits(url, params).pipe(someOtherStream);

Installation

Install into your project via npm:

npm install @elastic/scrollsearch --save

Testing

Either run tests as a once off:

npm test

Or continuously re-run tests whenever files change:

npm run test:dev

About

[defunct] Scroll through all Elasticsearch search results as a single stream

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published