Method: Elastictastic::BasicDocument::ClassMethods#mapping
- Defined in:
- lib/elastictastic/basic_document.rb
#mapping ⇒ Object
121 122 123 124 125 126 127 128 129 130 131 |
# File 'lib/elastictastic/basic_document.rb', line 121 def mapping mapping_for_type = { 'properties' => properties } mapping_for_type['_boost'] = @_boost if @_boost if @_routing_field mapping_for_type['_routing'] = { 'path' => @_routing_field.to_s, 'required' => @_routing_required } end { type => mapping_for_type } end |