Module: Elastictastic::Document::ClassMethods
- Defined in:
- lib/elastictastic/document.rb
Instance Method Summary collapse
Instance Method Details
#in_index(name_or_index) ⇒ Object
34 35 36 |
# File 'lib/elastictastic/document.rb', line 34 def in_index(name_or_index) Scope.new(Elastictastic::Index(name_or_index), self) end |
#mapping ⇒ Object
26 27 28 |
# File 'lib/elastictastic/document.rb', line 26 def mapping { type => { 'properties' => properties }} end |
#scoped(params) ⇒ Object
38 39 40 |
# File 'lib/elastictastic/document.rb', line 38 def scoped(params) current_scope.scoped(params) end |
#type ⇒ Object
30 31 32 |
# File 'lib/elastictastic/document.rb', line 30 def type name.underscore end |