Module: Elastic::Nodes::Concerns::FieldQuery

Included in:
Match, Range, Term
Defined in:
lib/elastic/nodes/concerns/field_query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fieldObject

Returns the value of attribute field.



3
4
5
# File 'lib/elastic/nodes/concerns/field_query.rb', line 3

def field
  @field
end

Instance Method Details

#render_field(_options) ⇒ Object



5
6
7
8
# File 'lib/elastic/nodes/concerns/field_query.rb', line 5

def render_field(_options)
  return "#{_options[:query_path]}.#{@field}" if _options.key? :query_path
  @field.to_s
end