# elasticonnect

> Elastic Search Dump, Update, Delete Utility Using Scan and Scroll

Latest version **0.0.7** (published 2016-03-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install elasticonnect
pnpm add elasticonnect
yarn add elasticonnect
bun add elasticonnect
```

Provides the command `elasticonnect`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2016-03-02 |
| First published | 2016-02-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+10 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Sambasiva Suda |
| Maintainers | epictions |

## Links

- npm: https://www.npmjs.com/package/elasticonnect
- Repository: https://github.com/epictions/elasticonnect
- Homepage: https://github.com/epictions/elasticonnect#readme
- Issues: https://github.com/epictions/elasticonnect/issues
- npm.io page: https://npm.io/package/elasticonnect

## Dependencies (8)

- [q](https://npm.io/package/q.md) 1.4.1
- [debug](https://npm.io/package/debug.md) 2.2.0
- [lodash](https://npm.io/package/lodash.md) 4.2.0
- [async-q](https://npm.io/package/async-q.md) 0.3.1
- [inquirer](https://npm.io/package/inquirer.md) 0.11.4
- [progress](https://npm.io/package/progress.md) 1.1.8
- [commander](https://npm.io/package/commander.md) 2.9.0
- [elasticsearch](https://npm.io/package/elasticsearch.md) 10.1.3

## Recent versions

- 0.0.7 (latest) — 2016-03-02
- 0.0.6 — 2016-02-25
- 0.0.5 — 2016-02-23
- 0.0.4 — 2016-02-19
- 0.0.3 — 2016-02-15
- 0.0.2 — 2016-02-15
- 0.0.1 — 2016-02-15

## README

### Installation

You need elasticonnect installed globally:

```
$ npm i -g elasticonnect
```

### Usage

##### Delete by query
```
$ DEBUG=* elasticonnect --input=elasticsearch://localhost:9200/my_index/my_type delete  '{"query":{"range":{"publish_time":{"gte":1262304000000}}}}'
```

##### Update by query
```
$ DEBUG=* elasticonnect --input=elasticsearch://localhost:9200/my_index/my_type --source=title,content --process-module=<./update-module.js> update '{"query":{"range":{"publish_time":{"gte":1262304000000}}}}'
```

default update processing module is src/es-update.js

##### Dump by query
```
$ DEBUG=* elasticonnect --input=elasticsearch://localhost:9200/my_index/my_type --source=title,content  --process-module=<./dump-module.js> dump --output=elasticsearch://localhost:9200/my_index2/my_type '{"query":{"range":{"publish_time":{"gte":1262304000000}}}}'
```

default dump processing module is src/es-dump.js

### Development

```
$ git clone git@github.com:epictions/elasticonnect.git
$ cd elasticonnect
$ npm i
$ npm run build
$ DEBUG=* node dist -h
```

### Todos
Implement various connectors for dump command like mysql, postgresql, file, bigquery

License
----
ISC

**Free Software, Hell Yeah!**

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