Socket
Socket
Sign inDemoInstall

elasticsearch-thrift

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    elasticsearch-thrift

Elasticsearch thrift RPC wrapper


Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Install size
145 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 28 Dec 2012

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc