Class: Elasticated::Mapping::Fields::StringField

Inherits:
FieldWithDocValues show all
Defined in:
lib/elasticated/mapping/fields/string_field.rb

Instance Attribute Summary

Attributes inherited from FieldWithDocValues

#doc_values

Attributes inherited from StandardField

#name

Instance Method Summary collapse

Methods inherited from FieldWithDocValues

#initialize

Methods inherited from StandardField

#build, #initialize

Constructor Details

This class inherits a constructor from Elasticated::Mapping::Fields::FieldWithDocValues

Instance Method Details

#build_bodyObject



6
7
8
9
10
# File 'lib/elasticated/mapping/fields/string_field.rb', line 6

def build_body
  body = super
  body[:index] = :not_analyzed
  body
end

#typeObject



12
13
14
# File 'lib/elasticated/mapping/fields/string_field.rb', line 12

def type
  :string
end