1.0.2 • Published 9 years ago
es-get-ids
Licence
MIT
Version
1.0.2
Deps
5
Vulns
0
Weekly
0
Elasticsearch Get Ids
Get all ids from Elasticsearch
Uses Scroll API to overcome a result window limit of 10 000.
Install
$ yarn add es-get-ids
Usage
import getIds from 'es-get-ids';
await getIds(ES_URL); // 1, 2, 3, 4
// Options
await getIds(ES_URL, {index, type, scroll = '10s', size = 5000, body = {}});
// body can be whatever