Method: Elastic::Type.connector
- Defined in:
- lib/elastic/type.rb
.connector ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/elastic/type.rb', line 33 def self.connector @connector ||= begin Elastic::Core::Connector.new( suffix, definition.as_es_mapping ).tap do |conn| if Elastic.config.whiny_indices && conn.status != :ready raise 'elastic index out of sync, try migrating' end end end end |