Module: ActiveEs::Schema::Describe

Extended by:
ActiveSupport::Concern
Included in:
ActiveEs::Schema
Defined in:
lib/active_es/schema/describe.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
# File 'lib/active_es/schema/describe.rb', line 6

def index
  ActiveEs::Configurations.new.index
end

#mappingsObject



14
15
16
# File 'lib/active_es/schema/describe.rb', line 14

def mappings
  { mappings: { "#{type}" => { properties: properties } } }
end

#typeObject



10
11
12
# File 'lib/active_es/schema/describe.rb', line 10

def type
  name.tableize
end