Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ElasticSearch Ruby client

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
vendor/elasticsearch
.autotest
.gitignore
.rspec
CONTRIBUTORS
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
TODO
rubberband.gemspec

README.rdoc

RubberBand

An ElasticSearch client with ThriftClient-like failover handling.

License

Copyright 2010 Grant Rodgers. See included LICENSE file.

Features

  • Automatic failover, retry, and peer discovery

  • Support for multiple transports (HTTP, Thrift, Memcached TODO)

  • Support for multiple encodings (JSON (Yajl), Smile TODO)

Usage

Instantiate a client:

client = ElasticSearch.new('127.0.0.1:9200', :index => "twitter", :type => "tweet")

API:

client.index({:body => "elasticsearch is cool"}, :id => 1)
client.get("1")
client.search("body:elasticsearch")

TODO

See TODO file.

Contributing

github.com/grantr/rubberband

Fork, code, send pull request

Something went wrong with that request. Please try again.