Module: ElasticSearch

Defined in:
lib/elasticsearch/client/retrying_client.rb,
lib/elasticsearch.rb,
lib/elasticsearch/client.rb,
lib/elasticsearch/encoding.rb,
lib/elasticsearch/transport.rb,
lib/elasticsearch/client/hits.rb,
lib/elasticsearch/client/index.rb,
lib/elasticsearch/encoding/base.rb,
lib/elasticsearch/encoding/json.rb,
lib/elasticsearch/transport/base.rb,
lib/elasticsearch/transport/http.rb,
lib/elasticsearch/transport/thrift.rb,
lib/elasticsearch/client/admin_index.rb,
lib/elasticsearch/client/admin_cluster.rb,
lib/elasticsearch/client/default_scope.rb,
lib/elasticsearch/transport/thrift/rest.rb,
lib/elasticsearch/client/abstract_client.rb,
lib/elasticsearch/transport/base_protocol.rb,
lib/elasticsearch/client/auto_discovering_client.rb,
lib/elasticsearch/transport/thrift/elasticsearch_types.rb,
lib/elasticsearch/transport/thrift/elasticsearch_constants.rb

Overview

mostly ripped from thrift_client

Defined Under Namespace

Modules: Api, AutoDiscoveringClient, Encoding, RetryingClient, Thrift, Transport Classes: AbstractClient, Client, ConnectionFailed, FatalError, HostResolutionError, NoServersAvailable, RequestError, RetryableError, TimeoutError

Class Method Summary collapse

Class Method Details

.new(servers, options = {}) ⇒ Object



11
12
13
# File 'lib/elasticsearch.rb', line 11

def self.new(servers, options={})
  ElasticSearch::Client.new(servers, options)
end