module Elastic::Nodes::Concerns::Boostable

Attributes

boost[RW]

Public Instance Methods

clone() click to toggle source
Calls superclass method
# File lib/elastic/nodes/concerns/boostable.rb, line 5
def clone
  copy_boost super
end
simplify() click to toggle source
Calls superclass method
# File lib/elastic/nodes/concerns/boostable.rb, line 9
def simplify
  copy_boost super
end

Private Instance Methods

copy_boost(_clone) click to toggle source
# File lib/elastic/nodes/concerns/boostable.rb, line 15
def copy_boost(_clone)
  _clone.boost = @boost
  _clone
end
render_boost(_hash) click to toggle source
# File lib/elastic/nodes/concerns/boostable.rb, line 20
def render_boost(_hash)
  _hash['boost'] = @boost.to_f unless @boost.nil?
  _hash
end