New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stretch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stretch

  • 0.1.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Stretch

Build Status Code Climate Status

Elasticsearch client library written for people who like understandable documentation and understandable code.

Installation

Add this line to your application's Gemfile:

gem 'stretch'

And then execute:

$ bundle

Or install it yourself as:

$ gem install stretch

Usage

Establishing a connection:

$stretch = Stretch::Client.new :url => "http://127.0.0.1:9200/"

Cluster and Index Health

$stretch.cluster.health :timeout => '10s'
$stretch.index('tweets').health :wait_for_status => 'green'

Cluster State

$stretch.cluster.state
$stretch.cluster.state :filter_nodes => true

Cluster and Index Settings

$stretch.cluster.settings :persistent => {
  "cluster.routing.allocation.node_concurrent_recoveries" => 4
}

$stretch.index('foo').settings :index => { :number_of_replicas => 2 }

Opening and Closing Indices

$stretch.index('foo').open!
$stretch.index('bar').close!

FAQs

Package last updated on 15 Apr 2013

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc