# es-get-ids

> Get all ids from ES

Latest version **1.0.2** (published 2017-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install es-get-ids
pnpm add es-get-ids
yarn add es-get-ids
bun add es-get-ids
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-05-11 |
| First published | 2017-05-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vlad Holubiev |
| Maintainers | vladgolubev |

## Links

- npm: https://www.npmjs.com/package/es-get-ids
- npm.io page: https://npm.io/package/es-get-ids

## Dependencies (5)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4
- [JSONStream](https://npm.io/package/JSONStream.md) ^1.3.1
- [event-stream](https://npm.io/package/event-stream.md) ^3.3.4
- [elasticsearch](https://npm.io/package/elasticsearch.md) ^13.0.0
- [elasticsearch-scroll-stream](https://npm.io/package/elasticsearch-scroll-stream.md) ^1.1.0

## Recent versions

- 1.0.2 (latest) — 2017-05-11

## README

# Elasticsearch Get Ids

> Get all ids from Elasticsearch

Uses [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html)
to overcome a result window limit of 10 000.

## Install

```shell
$ yarn add es-get-ids
```

## Usage

```javascript
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
```

---
_Source: https://npm.io/package/es-get-ids · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
