lib/aws_cloud_search/search_request.rb
# Restricts the records returned based on the values from the rank expression. The t-field value is a range.
# @param [String] field The field for which to add.
# @param [Integer] t_from Beginning of the range, may be nil or blank string.
# @param [Integer] t_to   End of the range, may be nil or blank string.
Restricts the records returned based on the values from the rank expression. The t-field value is a range.
Restricts the records returned based on the values from the rank expression . The t - field value is a range .
def add_t(field, t_from, t_to)
      raise ArgumentError.new("Range must have a beginning or ending value or both.") if t_from.nil? and t_to.nil?
      raise ArgumentError.new("Range values must be of type Integer") unless t_from.kind_of? Integer and t_to.kind_of? Integer
      @t["t-#{field}"] = "#{t_from}..#{t_to}"
    end
def add_t ( field , t_from , t_to ) raise ArgumentError . new ( "Range must have a beginning or ending value or both." ) if t_from . nil? and t_to . nil? raise ArgumentError . new ( "Range values must be of type Integer" ) unless t_from . kind_of? Integer and t_to . kind_of? Integer @t [ "t-#{field}" ] = "#{t_from}..#{t_to}" end
Restricts the records returned based on the values from the rank expression.
Restricts the records returned based on the values from the rank expression .
field
<not_specific>
t_from
<not_specific>
t_to
<not_specific>
<not_specific>
t_to End of the range, may be nil or blank string.
t_to End of the range may be nil or blank string .