KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
stretch
★ 20
Open GitHub ↗
You know, for elasticsearch
Download README (.md)
Explore Similar Repositories
mysql-udf-base64
:
It provides base64 encode/decode UDF (user defined function) for MySQL-5.1/5.5/5.6
sublime-text
:
Personal Sublime Text setup
es-google-drive-river
:
Google Drive river for Elasticsearch
meet-meteor
:
A shower of Meteor meetups
oem_gateway
:
Part of OpenEnergyMonitor project. Gateway from data source to target database.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
stretch
?
Download (.md)
# Stretch [](https://travis-ci.org/wfarr/stretch) [](https://codeclimate.com/github/wfarr/stretch) 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: ``` ruby $stretch = Stretch::Client.new :url => "http://127.0.0.1:9200/" ``` ### Cluster and Index Health ``` ruby $stretch.cluster.health :timeout => '10s' $stretch.index('tweets').health :wait_for_status => 'green' ``` ### Cluster State ``` ruby $stretch.cluster.state $stretch.cluster.state :filter_nodes => true ``` ### Cluster and Index Settings ``` ruby $stretch.cluster.settings :persistent => { "cluster.routing.allocation.node_concurrent_recoveries" => 4 } $stretch.index('foo').settings :index => { :number_of_replicas => 2 } ``` ### Opening and Closing Indices ``` ruby $stretch.index('foo').open! $stretch.index('bar').close! ```