class Elastic::Nodes::Range
Attributes
gt[RW]
gte[RW]
lt[RW]
lte[RW]
Public Instance Methods
clone()
click to toggle source
Calls superclass method
Elastic::Nodes::Concerns::Boostable#clone
# File lib/elastic/nodes/range.rb, line 8 def clone prepare_clone(super) end
render(_options = {})
click to toggle source
# File lib/elastic/nodes/range.rb, line 16 def render(_options = {}) hash = {} hash['gte'] = @gte unless @gte.nil? hash['gt'] = @gt unless @gt.nil? hash['lte'] = @lte unless @lte.nil? hash['lt'] = @lt unless @lt.nil? { "range" => { render_field(_options) => render_boost(hash) } } end
simplify()
click to toggle source
Calls superclass method
Elastic::Nodes::Concerns::Boostable#simplify
# File lib/elastic/nodes/range.rb, line 12 def simplify prepare_clone(super) end
Private Instance Methods
prepare_clone(_clone)
click to toggle source
# File lib/elastic/nodes/range.rb, line 28 def prepare_clone(_clone) _clone.field = @field _clone.gte = @gte _clone.gt = @gt _clone.lte = @lte _clone.lt = @lt _clone end