es-get-ids

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i es-get-ids

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • vladgolubev