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
Defined Under Namespace
Modules: Search, Strategies
Classes: BaseDocument, Bulk, Config, Document, IndexConfig, IndexMapper, InstrumentedClient, LogSubscriber, MultiSearch, Railtie, SegmentedDocument
Constant Summary
collapse
- VERSION =
"0.4.4"
- GRAY =
"\e[90m"
Class Method Summary
collapse
Class Method Details
.config ⇒ Object
43
44
45
46
|
# File 'lib/elasticity.rb', line 43
def self.config
return @config if defined?(@config)
@config = Config.new
end
|
38
39
40
41
|
# File 'lib/elasticity.rb', line 38
def self.configure
@config = Config.new
yield(@config)
end
|