class Queries::QueryBuilder

Base Class for all query classes

QueryComponents
  boost: documents matching the query are boosted by
         the value

Constants

NAME

Public Instance Methods

boost(value) click to toggle source

@param [Numeric]

value boost value for the query

@return [QueryBuilder] modified self sets the boost value for this query

# File lib/queries/query_builder.rb, line 26
def boost(value)
  raise 'boost value is nil' if value.nil?

  @boost = value
  self
end
boost_expr() click to toggle source

@!visibility protected @return [Numeric] the boost for this query

# File lib/queries/query_builder.rb, line 18
def boost_expr
  @boost
end