Module: Elasticity

Defined in:
lib/elasticity.rb,
lib/elasticity/bulk.rb,
lib/elasticity/config.rb,
lib/elasticity/search.rb,
lib/elasticity/railtie.rb,
lib/elasticity/version.rb,
lib/elasticity/document.rb,
lib/elasticity/strategies.rb,
lib/elasticity/index_config.rb,
lib/elasticity/index_mapper.rb,
lib/elasticity/multi_search.rb,
lib/elasticity/base_document.rb,
lib/elasticity/log_subscriber.rb,
lib/elasticity/segmented_document.rb,
lib/elasticity/instrumented_client.rb,
lib/elasticity/strategies/alias_index.rb,
lib/elasticity/strategies/single_index.rb,
lib/elasticity/multi_search_response_parser.rb

Defined Under Namespace

Modules: Search, Strategies Classes: BaseDocument, Bulk, Config, Document, IndexConfig, IndexMapper, InstrumentedClient, LogSubscriber, MultiSearch, MultiSearchResponseParser, Railtie, SegmentedDocument

Constant Summary collapse

VERSION =
"1.4.0"
GRAY =
"\e[90m"

Class Method Summary collapse

Class Method Details

.configObject



47
48
49
50
# File 'lib/elasticity.rb', line 47

def self.config
  return @config if defined?(@config)
  @config = Config.new
end

.configure {|@config| ... } ⇒ Object

Yields:



42
43
44
45
# File 'lib/elasticity.rb', line 42

def self.configure
  @config = Config.new
  yield(@config)
end