Module: Elasticord

Defined in:
lib/elasticord.rb,
lib/elasticord/base.rb,
lib/elasticord/config.rb,
lib/elasticord/version.rb,
lib/elasticord/client/get.rb,
lib/elasticord/client/base.rb,
lib/elasticord/client/index.rb,
lib/elasticord/client/create.rb,
lib/elasticord/client/delete.rb,
lib/elasticord/client/search_builder.rb,
lib/elasticord/client/array_with_meta_data.rb

Defined Under Namespace

Modules: Client, Config Classes: Base

Constant Summary collapse

VERSION =
'1.0.6'.freeze

Class Method Summary collapse

Class Method Details

.configure {|Config| ... } ⇒ Object

Yields:



18
19
20
# File 'lib/elasticord.rb', line 18

def self.configure
  yield(Config)
end

.elastic_search_clientObject



9
10
11
# File 'lib/elasticord.rb', line 9

def self.elastic_search_client
  @elastic_search_client ||= reset_elastic_search_client
end

.reset_elastic_search_clientObject



13
14
15
16
# File 'lib/elasticord.rb', line 13

def self.reset_elastic_search_client
  @elastic_search_client = Elasticsearch::Client.new \
    log: Elasticord::Config.get(:log)
end