Get all ids from Elasticsearch
Uses Scroll API to overcome a result window limit of 10 000.
$ yarn add es-get-ids
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