# elasticsearch-thrift

> Elasticsearch thrift RPC wrapper

Latest version **0.0.5** (published 2012-12-28) · 0 weekly downloads

## Install

```sh
npm install elasticsearch-thrift
pnpm add elasticsearch-thrift
yarn add elasticsearch-thrift
bun add elasticsearch-thrift
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2012-12-28 |
| First published | 2012-08-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.6.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | dainis |

## Links

- npm: https://www.npmjs.com/package/elasticsearch-thrift
- Repository: https://github.com/dainis/node-elasticsearch-thrift
- npm.io page: https://npm.io/package/elasticsearch-thrift

## Dependencies (2)

- [node-uuid](https://npm.io/package/node-uuid.md) *
- [node-thrift](https://npm.io/package/node-thrift.md) *

## Recent versions

- 0.0.5 (latest) — 2012-12-28
- 0.0.4 — 2012-12-28
- 0.0.3 — 2012-12-27
- 0.0.2 — 2012-09-25
- 0.0.1 — 2012-08-12

## README

# ElasticSearch thrift

Basic Elasticsearch thrift transport protocol wrapper

## Install
	npm install elasticsearch-thrift

## Usage

	var search,
	ElasticSearch = require('../elasticsearch-thrift');

	search = new ElasticSearch({
		servers: [{
			host: 'localhost',
			port: 9500
		}]}, function() {
		console.log('connected');

		search.closeConnections();

		search.get({uri: '_stats'}, function(err, res){
			console.log(err, res);
			search.closeConnections();
		});
	});

## Elasticsearch configuration

To use Elasticsearch with thrift first you must install thrift plugin by executing :

	bin/plugin -install elasticsearch/elasticsearch-transport-thrift/1.2.0

And set few configuration options

	thrift:
		port: 9500 # any of your choice
		frame: 1mb # node thrift module currently only supports framed transport protocol

Thrift file is taken from official Elasticsearch thrift transport [repo schema](https://github.com/elasticsearch/elasticsearch-transport-thrift/blob/master/elasticsearch.thrift)

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