Class: Elasticated::Mapping::Fields::AnalyzedStringField
Instance Attribute Summary
#doc_values
#name
Instance Method Summary
collapse
#initialize
#build, #initialize
Instance Method Details
#build_body ⇒ Object
6
7
8
9
10
11
12
|
# File 'lib/elasticated/mapping/fields/analyzed_string_field.rb', line 6
def build_body
body = { type: type }
not_analyzed_string = StringField.new(name, doc_values)
body[:fields] = not_analyzed_string.build
body[:fields][:analyzed] = { type: :string }
body
end
|
#type ⇒ Object
14
15
16
|
# File 'lib/elasticated/mapping/fields/analyzed_string_field.rb', line 14
def type
:multi_field
end
|