1.0.2 • Published 7 years ago
es-get-ids v1.0.2
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
1.0.2
7 years ago