1.0.0-alpha1 • Published 8 years ago
es-scrollsearch v1.0.0-alpha1
Elasticsearch Scrolling Search
Scroll through all Elasticsearch search results as a single stream
Requirements
- Node.js >= 4.3.0
Usage
const streamHits = require('es-scrollstream');
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 es-scrollstream --save
Testing
Either run tests as a once off:
npm test
Or continuously re-run tests whenever files change:
npm run test:dev
1.0.0-alpha1
8 years ago
1.0.0-dev
8 years ago